diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19eb0189..9b667f37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,13 +52,18 @@ jobs: deploy-production: if: github.ref == 'refs/heads/main' needs: check-and-build + + permissions: + pages: write + id-token:: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 - with: - name: artifact - path: deploy - - uses: JamesIves/github-pages-deploy-action@v4 + - id: deployment + uses: actions/deploy-pages@v4 with: - folder: deploy + artifact_name: artifact