From e0a4eb69d9c0ece5034d864595d83e28721c3fcb Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Tue, 21 Nov 2023 12:13:04 -0500 Subject: [PATCH] First pass of generating docs to github pages --- .github/workflows/docs.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..63927a2 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,28 @@ +name: docs + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + container: devkitpro/devkitarm + steps: + - name: Checkout branch + uses: actions/checkout@v2 + + - uses: rust3ds/test-runner/setup@v1 + with: + toolchain: nightly + + - name: Build workspace docs + run: cargo 3ds --verbose doc --verbose --no-deps --workspace + + - name: Deploy crate docs + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./target/armv6k-nintendo-3ds/doc