File tree Expand file tree Collapse file tree 3 files changed +29
-36
lines changed Expand file tree Collapse file tree 3 files changed +29
-36
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+
8
+ jobs :
9
+ ci :
10
+ name : CI
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : Cache cargo
15
+ uses : actions/cache@v1
16
+ with :
17
+ path : target
18
+ key : cargo-build-${{ hashFiles('**/Cargo.lock') }}
19
+ restore-key : cargo-build-
20
+ - name : Build Blog
21
+ run : cargo run
22
+ - name : Deploy to GitHub Pages
23
+ run : |
24
+ cp CNAME ./site/
25
+ 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)
27
+ env :
28
+ GITHUB_DEPLOY_KEY : ${{ secrets.GITHUB_DEPLOY_KEY }}
29
+ if : github.ref == 'refs/heads/master'
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments