name: Deploy Pages on: workflow_dispatch: permissions: contents: read concurrency: group: pages cancel-in-progress: false jobs: validate: if: github.ref == 'refs/heads/master' && vars.PAGES_DEPLOY_ENABLED == 'true' uses: ./.github/workflows/nodejs.yml with: pages-artifact: true deploy: if: github.ref == 'refs/heads/master' && vars.PAGES_DEPLOY_ENABLED == 'true' needs: validate runs-on: ubuntu-latest timeout-minutes: 10 permissions: pages: write id-token: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - name: Deploy the validated artifact id: deployment uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1