From 24bfe50b8baf71aca50ef127c486233f76e3d485 Mon Sep 17 00:00:00 2001 From: rzmk Date: Tue, 19 Sep 2023 00:00:56 -0400 Subject: [PATCH] ci: add cargo doc deployment to gh pages --- .github/workflows/deploy-docs.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deploy-docs.yml diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 0000000..06aa48d --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,31 @@ +name: Deploy Documentation + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Build Documentation + run: | + cd ladderz + cargo doc + cd .. + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./ladderz/target/doc