We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a44ed57 commit c5c7bcfCopy full SHA for c5c7bcf
.github/workflows/main.yml
@@ -17,13 +17,11 @@ jobs:
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 }}
+ - run: cargo run
+ - run: cp CNAME ./site/
+ - uses: JamesIves/github-pages-deploy-action@releases/v3
29
if: github.ref == 'refs/heads/master'
+ with:
+ ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ BRANCH: gh-pages
+ FOLDER: site
0 commit comments