aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/rustdoc.yaml
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-11-18 08:13:31 +0000
committerAleksey Kladov <[email protected]>2019-11-18 09:35:03 +0000
commit34025020b5a34859ecd6f7b3975dc059f3345e26 (patch)
treeab7378e18830df35dc72995431d550eab6edbd5f /.github/workflows/rustdoc.yaml
parent396853defb1359dfabcab4eaa41ab3f2230b1582 (diff)
Switch to Actions
Diffstat (limited to '.github/workflows/rustdoc.yaml')
-rw-r--r--.github/workflows/rustdoc.yaml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/rustdoc.yaml b/.github/workflows/rustdoc.yaml
new file mode 100644
index 000000000..caa1dcc30
--- /dev/null
+++ b/.github/workflows/rustdoc.yaml
@@ -0,0 +1,39 @@
1name: rustdoc
2on:
3 push:
4 branches:
5 - master
6
7jobs:
8 rustdoc:
9 runs-on: ubuntu-latest
10 env:
11 RUSTFLAGS: -D warnings
12 CARGO_INCREMENTAL: 0
13
14 steps:
15 - name: Checkout repository
16 uses: actions/checkout@v1
17
18 - name: Install Rust toolchain
19 uses: actions-rs/toolchain@v1
20 with:
21 toolchain: stable
22 profile: minimal
23 override: true
24 components: rustfmt, rust-src
25
26 - name: Build Documentation
27 uses: actions-rs/cargo@v1
28 with:
29 command: doc
30 args: --all --no-deps
31
32 - name: Deploy Docs
33 uses: peaceiris/[email protected]
34 env:
35 ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
36 PUBLISH_BRANCH: gh-pages
37 PUBLISH_DIR: ./target/doc
38 with:
39 forceOrphan: true