66 workflow_dispatch : {}
77
88concurrency :
9- group : pages
10- cancel-in-progress : true
9+ group : pages-${{ github.ref }}
10+ cancel-in-progress : false
1111
1212permissions :
1313 contents : read
14- pages : write
15- id-token : write
1614
1715jobs :
1816 build :
1917 runs-on : ubuntu-latest
2018 timeout-minutes : 20
2119 steps :
2220 - name : Checkout
23- uses : actions/checkout@v4
21+ uses : actions/checkout@v7
22+ with :
23+ persist-credentials : false
2424
2525 - name : Setup pnpm
26- uses : pnpm/action-setup@v4
26+ uses : pnpm/action-setup@v6
2727
2828 - name : Setup Node.js
29- uses : actions/setup-node@v4
29+ uses : actions/setup-node@v7
3030 with :
3131 node-version : ' 24'
3232 cache : pnpm
3333
34- - name : Configure GitHub Pages
35- uses : actions/configure-pages@v5
36-
3734 - name : Install dependencies
3835 run : pnpm install --frozen-lockfile
3936
@@ -43,34 +40,24 @@ jobs:
4340 - name : Build static Blocks site
4441 run : pnpm build:pages
4542
46- - name : Assemble Pages artifact
47- run : |
48- rm -rf _site
49- mkdir -p _site/r
50- cp -R apps/blocks/out/. _site/
51- cp apps/registry/public/r/*.json _site/r/
52- test -f _site/index.html
53- test -f _site/blocks/index.html
54- test -f _site/r/registry.json
55- test -f _site/r/chat.json
56- test -f _site/r/schema-builder.json
57- grep -q '/blocks/_next/' _site/index.html
58- ! grep -R 'github.io/dashboard' _site
59-
6043 - name : Upload Pages artifact
61- uses : actions/upload-pages-artifact@v4
44+ uses : actions/upload-pages-artifact@v5
6245 with :
63- path : _site
46+ path : .artifacts/pages
6447
6548 deploy :
49+ if : github.ref == 'refs/heads/main'
6650 needs : build
6751 runs-on : ubuntu-latest
52+ permissions :
53+ pages : write
54+ id-token : write
6855 environment :
6956 name : github-pages
7057 url : ${{ steps.deployment.outputs.page_url }}
7158 steps :
7259 - name : Deploy GitHub Pages
7360 id : deployment
74- uses : actions/deploy-pages@v4
61+ uses : actions/deploy-pages@v5
7562
7663# npm publication is a maintainer-run local process and is intentionally absent.
0 commit comments