From 8af22f70e5c2e4ae06c3d01c86317aaf34e6f84e Mon Sep 17 00:00:00 2001 From: Richard Otap Date: Mon, 24 Nov 2025 14:47:14 -0800 Subject: [PATCH] ci: Update `actions/deploy-pages` to v4 and split jobs --- .github/workflows/rustdoc.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rustdoc.yml b/.github/workflows/rustdoc.yml index 2e71103..1ebca76 100644 --- a/.github/workflows/rustdoc.yml +++ b/.github/workflows/rustdoc.yml @@ -30,17 +30,11 @@ concurrency: cancel-in-progress: false jobs: - # Single deploy job since we're just deploying - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - - name: Setup Pages - uses: actions/configure-pages@v3 - name: Build Documentation run: cargo doc --all --no-deps - name: Add Redirect @@ -57,6 +51,13 @@ jobs: with: # Upload docs output path: './target/doc' + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4