File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches : [main]
66
7+ # GITHUB_TOKEN の権限
78permissions :
89 contents : read
910 pages : write
1011 id-token : write
12+ # ※ artifacts API を直接呼ぶ場合は actions: write も付ける
1113
1214concurrency :
13- group : ' pages'
15+ group : pages
1416 cancel-in-progress : true
1517
1618jobs :
1719 build :
1820 runs-on : ubuntu-latest
1921 steps :
2022 - uses : actions/checkout@v4
23+
2124 - uses : actions/setup-node@v4
2225 with :
2326 node-version : ' 20'
27+
2428 - uses : oven-sh/setup-bun@v1
2529 with :
26- bun-version : ' latest'
30+ bun-version : latest
31+
2732 - run : bun install --frozen-lockfile
2833 - run : bun run build
29- - uses : actions/upload-pages-artifact@v2
34+
35+ # Pages 用設定(必須ではないが推奨)
36+ - uses : actions/configure-pages@v5
37+
38+ # v3 は upload-artifact@v4 を内部使用
39+ - uses : actions/upload-pages-artifact@v3
3040 with :
31- path : ./dist
41+ path : ./dist # ビルド成果物のディレクトリ
3242
3343 deploy :
3444 needs : build
3848 url : ${{ steps.deployment.outputs.page_url }}
3949 steps :
4050 - id : deployment
41- uses : actions/deploy-pages@v2
42-
51+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments