Skip to content

Commit fd079be

Browse files
committed
kys github
1 parent 6135b25 commit fd079be

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/cd.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
918
jobs:
1019
build:
1120
runs-on: ubuntu-latest
@@ -29,27 +38,20 @@ jobs:
2938

3039
- name: Build
3140
run: pnpm run build
32-
env:
33-
NITRO_PRESET: github_pages
3441

3542
- name: Upload artifact
3643
uses: actions/upload-pages-artifact@v3
3744
with:
38-
path: "./.output/public"
45+
path: ".output/public"
3946

4047
deploy:
48+
name: Deploy to GitHub Pages
4149
needs: build
42-
43-
permissions:
44-
pages: write
45-
id-token: write
46-
50+
runs-on: ubuntu-latest
4751
environment:
4852
name: github-pages
4953
url: ${{ steps.deployment.outputs.page_url }}
50-
51-
runs-on: ubuntu-latest
5254
steps:
5355
- name: Deploy to GitHub Pages
5456
id: deployment
55-
uses: actions/deploy-pages@v1
57+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)