File tree Expand file tree Collapse file tree 2 files changed +12
-20
lines changed Expand file tree Collapse file tree 2 files changed +12
-20
lines changed Original file line number Diff line number Diff line change 10
10
strategy :
11
11
matrix :
12
12
os : [ubuntu-latest, macos-latest, windows-latest]
13
- env :
14
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
15
13
steps :
16
14
- uses : actions/checkout@master
17
15
- name : Install hub
@@ -24,16 +22,24 @@ jobs:
24
22
run : ci/install-rust.sh stable
25
23
shell : bash
26
24
- name : Build and deploy artifacts
25
+ env :
26
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
27
run : ci/make-release.sh ${{ matrix.os }}
28
28
shell : bash
29
29
pages :
30
30
name : GitHub Pages
31
31
runs-on : ubuntu-latest
32
- env :
33
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
32
steps :
35
33
- uses : actions/checkout@master
36
34
- name : Install Rust (rustup)
37
35
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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments