From d9a0b9f546c4a9ff91276cc89b4eca3ac43c0538 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 31 Jul 2023 11:24:11 -0500 Subject: [PATCH] ci: update docs build --- .github/workflows/docs.yml | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0ac879d..24a148d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: jobs: - deploy-docs: + build: runs-on: ubuntu-22.04 permissions: contents: write @@ -24,9 +24,24 @@ jobs: - name: Build Docs run: pdm run make docs - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - cname: viv.dayl.in - publish_dir: ./site + path: ./site + + deploy: + needs: build + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2