File tree Expand file tree Collapse file tree 2 files changed +25
-19
lines changed Expand file tree Collapse file tree 2 files changed +25
-19
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - master
8+
9+ jobs :
10+ test :
11+ name : build and test
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Install mdbook
16+ run : |
17+ tag=$(curl -LsSf https://api.github.com/repos/rust-lang/mdBook/releases/latest | jq -r '.tag_name')
18+ curl -LsSf https://github.com/rust-lang/mdBook/releases/download/$tag/mdbook-$tag-x86_64-unknown-linux-gnu.tar.gz | tar xzf -
19+ echo $(pwd) >> $GITHUB_PATH
20+ - run : mdbook build && mdbook test
21+ - uses : rust-lang/simpleinfra/github-actions/static-websites@master
22+ with :
23+ deploy_dir : book
24+ github_token : ${{ secrets.GITHUB_TOKEN }}
25+ if : github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository_owner == 'rust-lang'
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments