Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: Deploy to GitHub Pages
name: Deploy

on:
push:
branches: [main]
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
Expand All @@ -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:
Expand Down Expand Up @@ -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