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 @@ -17,13 +17,12 @@ jobs:
17
17
path : target
18
18
key : cargo-build-${{ hashFiles('**/Cargo.lock') }}
19
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 }}
20
+ - run : cargo run
21
+ - run : cp CNAME ./site/
22
+ - run : touch site/.nojekyll
23
+ - uses : JamesIves/github-pages-deploy-action@releases/v3
29
24
if : github.ref == 'refs/heads/master'
25
+ with :
26
+ ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
+ BRANCH : gh-pages
28
+ FOLDER : site
You can’t perform that action at this time.
0 commit comments