From adeef1d1a2efd793b617693e777ad8825fab7e58 Mon Sep 17 00:00:00 2001 From: pml68 Date: Mon, 31 Mar 2025 11:25:59 +0200 Subject: feat: add docs workflow --- .github/workflows/doc.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/doc.yml (limited to '.github/workflows') diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml new file mode 100644 index 0000000..3008d44 --- /dev/null +++ b/.github/workflows/doc.yml @@ -0,0 +1,23 @@ +name: Pages + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + pages: + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - name: Build documentation + run: cargo doc --verbose + - name: Deploy documentation + uses: peaceiris/actions-gh-pages@v4 + if: github.ref == 'refs/heads/master' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./target/doc + force_orphan: true -- cgit v1.2.3