diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 433a8a4..c1c7034 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -9,10 +9,7 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -permissions: - contents: read - pages: write - id-token: write + jobs: build: @@ -33,6 +30,25 @@ jobs: npm run build - name: Deploy 🚀 - uses: actions/deploy-pages@v4.0.5 + uses: actions/upload-pages-artifact@v3.0.1 with: - artifact_name: docs # The folder the action should deploy. + pats: docs/ + + deploy: + needs: build + + runs-on: ubuntu-latest + + permissions: + contents: read + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4