Skip to content

Commit fcf2d7a

Browse files
authored
Merge pull request #1073 from ehuss/fix-gh-pages
Fix gh-pages deploy.
2 parents f04d7b8 + 2498887 commit fcf2d7a

File tree

2 files changed

+12
-20
lines changed

2 files changed

+12
-20
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ jobs:
1010
strategy:
1111
matrix:
1212
os: [ubuntu-latest, macos-latest, windows-latest]
13-
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1513
steps:
1614
- uses: actions/checkout@master
1715
- name: Install hub
@@ -24,16 +22,24 @@ jobs:
2422
run: ci/install-rust.sh stable
2523
shell: bash
2624
- name: Build and deploy artifacts
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727
run: ci/make-release.sh ${{ matrix.os }}
2828
shell: bash
2929
pages:
3030
name: GitHub Pages
3131
runs-on: ubuntu-latest
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3432
steps:
3533
- uses: actions/checkout@master
3634
- name: Install Rust (rustup)
3735
run: rustup update stable --no-self-update && rustup default stable
38-
- name: Deploy to GitHub Pages
39-
run: ci/deploy-gh-pages.sh
36+
- name: Build book
37+
run: cargo run -- build book-example
38+
- name: Deploy to GitHub
39+
env:
40+
GITHUB_DEPLOY_KEY: ${{ secrets.GITHUB_DEPLOY_KEY }}
41+
run: |
42+
touch book-example/book/.nojekyll
43+
curl -LsSf https://github.com/raw/rust-lang/simpleinfra/master/setup-deploy-keys/src/deploy.rs | rustc - -o /tmp/deploy
44+
cd book-example/book
45+
/tmp/deploy

ci/deploy-gh-pages.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)