From 6483d8f6415489251c2e55f9c83b01ee070e839b Mon Sep 17 00:00:00 2001 From: Jordy Herrera Mussio Date: Mon, 29 Jul 2024 11:22:06 -0600 Subject: [PATCH] ci: change docs deployment action (#75) --- .github/workflows/docs.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e58163b..7da1bbd 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -27,9 +27,22 @@ jobs: run: | npm run build npm run docs + Deploy: + needs: Documentation - - name: Deploy - uses: github/pages-deploy-action@v2 + 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@v4 with: - branch: gh-pages - folder: dist/docs + path: dist/docs