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
12 changes: 3 additions & 9 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ on:
push:
branches: [main]
pull_request:
workflow_dispatch:
inputs:
deploy:
description: Deploy the static export to GitHub Pages
type: boolean
default: false

permissions:
contents: read
Expand All @@ -34,7 +28,7 @@ jobs:
node-version: 22
cache: npm
- name: Setup Pages
if: ${{ github.event_name == 'workflow_dispatch' && inputs.deploy }}
if: ${{ github.event_name == 'push' }}
uses: actions/configure-pages@v5
- name: Install dependencies
run: npm ci
Expand All @@ -45,13 +39,13 @@ jobs:
PAGES_BASE_URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
run: npm run build
- name: Upload artifact
if: ${{ github.event_name == 'workflow_dispatch' && inputs.deploy }}
if: ${{ github.event_name == 'push' }}
uses: actions/upload-pages-artifact@v5
with:
path: out

deploy:
if: ${{ github.event_name == 'workflow_dispatch' && inputs.deploy }}
if: ${{ github.event_name == 'push' }}
permissions:
contents: read
pages: write
Expand Down