From 7a467723916e2f414f5d529fa0c259edc8a0a489 Mon Sep 17 00:00:00 2001 From: Jasper Hugo Date: Sat, 14 Aug 2021 12:38:45 +0700 Subject: [PATCH] added rustdoc workflow --- .github/workflows/rustdoc.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/rustdoc.yml diff --git a/.github/workflows/rustdoc.yml b/.github/workflows/rustdoc.yml new file mode 100644 index 0000000..e16f1a0 --- /dev/null +++ b/.github/workflows/rustdoc.yml @@ -0,0 +1,29 @@ +name: Deploy docs to GitHub Pages +on: + push: + branches: + - master +jobs: + release: + name: Deploy Documentation + runs-on: ubuntu-latest + steps: + - name: Check out + uses: actions/checkout@v1 + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + components: rustfmt, rust-src + - name: Build docs + uses: actions-rs/cargo@v1 + with: + command: doc + args: --all --no-deps + - name: Deploy docs to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./target/doc \ No newline at end of file