File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -11,19 +11,18 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v2
14
- - name : Cache cargo
15
- uses : actions/cache@v1
14
+ - uses : XAMPPRocky/get-github-release@v1
16
15
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
22
22
- name : Deploy to GitHub Pages
23
23
run : |
24
- cp CNAME ./site/
25
24
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)
27
26
env :
28
27
GITHUB_DEPLOY_KEY : ${{ secrets.GITHUB_DEPLOY_KEY }}
29
28
if : github.ref == 'refs/heads/master'
You can’t perform that action at this time.
0 commit comments