Skip to content

Commit 934ee34

Browse files
authored
Merge pull request #577 from rust-lang/deploy-action
2 parents a44ed57 + 2d71809 commit 934ee34

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
@@ -17,13 +17,12 @@ jobs:
1717
path: target
1818
key: cargo-build-${{ hashFiles('**/Cargo.lock') }}
1919
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
2924
if: github.ref == 'refs/heads/master'
25+
with:
26+
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
BRANCH: gh-pages
28+
FOLDER: site

0 commit comments

Comments
 (0)