diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 22aa2b2..6aa9fea 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,4 +1,4 @@ -name: Deploy to GitHub Pages +name: Deploy on: push: @@ -6,10 +6,8 @@ on: pull_request: workflow_dispatch: -# Allow this job to clone the repo and create a page deployment permissions: contents: read - pages: write id-token: write deployments: write pull-requests: write @@ -33,10 +31,6 @@ jobs: run: pnpm install - name: Build site run: pnpm run build - - name: Upload GitHub Pages artifact - uses: actions/upload-pages-artifact@v4 - with: - path: dist/ - name: Upload dist artifact uses: actions/upload-artifact@v7 with: @@ -99,14 +93,3 @@ jobs: PR_NUMBER: ${{ github.event.pull_request.number }} run: .github/scripts/cloudflare-deploy.sh comment - deploy: - needs: build - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v5