diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index b33b293..4ed5991 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -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 @@ -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 @@ -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