Skip to content

Commit a2a0e83

Browse files
authored
Update GitHub Actions CI
1 parent 2633496 commit a2a0e83

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,18 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
14-
- name: Cache cargo
15-
uses: actions/cache@v1
14+
- uses: XAMPPRocky/get-github-release@v1
1615
with:
17-
path: target
18-
key: cargo-build-${{ hashFiles('**/Cargo.lock') }}
19-
restore-key: cargo-build-
20-
- name: Build Blog
21-
run: cargo run
16+
matches: linux
17+
owner: getzola
18+
repo: zola
19+
token: "${{ secrets.GITHUB_TOKEN }}"
20+
install_path: /usr/bin/env
21+
- run: zola build
2222
- name: Deploy to GitHub Pages
2323
run: |
24-
cp CNAME ./site/
2524
curl -LsSf https://raw.githubusercontent.com/rust-lang/simpleinfra/master/setup-deploy-keys/src/deploy.rs | rustc - -o /tmp/deploy
26-
(cd site/ && /tmp/deploy)
25+
(cd public/ && /tmp/deploy)
2726
env:
2827
GITHUB_DEPLOY_KEY: ${{ secrets.GITHUB_DEPLOY_KEY }}
2928
if: github.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)