ci(workspace): [ENG-02] add read-only checks and isolated Pages workflow

This commit is contained in:
Harvey Zhao committed 2026-09-10 19:22:24 +08:00
1 parent 9a6cfe5c6b
commit 833cc11674
16 files changed
+347 -61

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
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