From e0a4eb69d9c0ece5034d864595d83e28721c3fcb Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Tue, 21 Nov 2023 12:13:04 -0500 Subject: [PATCH 1/3] 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 From 52d578ed0348a46ea9690de8b3d7d1fa7ed3efde Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Tue, 21 Nov 2023 12:20:26 -0500 Subject: [PATCH 2/3] Use newer "upload" workflow for GH pages --- .github/workflows/docs.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 63927a2..5b050c6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -21,8 +21,11 @@ jobs: - name: Build workspace docs run: cargo 3ds --verbose doc --verbose --no-deps --workspace - - name: Deploy crate docs - uses: peaceiris/actions-gh-pages@v3 + - name: Upload generated docs + uses: actions/upload-pages-artifact@v2 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./target/armv6k-nintendo-3ds/doc + path: ./target/armv6k-nintendo-3ds/doc + + - name: Deploy GitHub pages + uses: actions/deploy-pages@v2 + From 599e4da4f1f2e8903cbb688fabfdc0400964b12d Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Tue, 21 Nov 2023 12:22:57 -0500 Subject: [PATCH 3/3] Update to actions/checkout@v4 --- .github/workflows/ci.yml | 4 ++-- .github/workflows/docs.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c447bbc..efe9ed3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: container: devkitpro/devkitarm steps: - name: Checkout branch - uses: actions/checkout@v2 + uses: actions/checkout@v4 - uses: rust3ds/test-runner/setup@v1 with: @@ -57,7 +57,7 @@ jobs: container: devkitpro/devkitarm steps: - name: Checkout branch - uses: actions/checkout@v2 + uses: actions/checkout@v4 - uses: rust3ds/test-runner/setup@v1 with: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5b050c6..ada5f27 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -12,7 +12,7 @@ jobs: container: devkitpro/devkitarm steps: - name: Checkout branch - uses: actions/checkout@v2 + uses: actions/checkout@v4 - uses: rust3ds/test-runner/setup@v1 with: