Skip to content

Commit 7d57cdf

Browse files
author
Shade4827
committed
CI上でGitの書き込み権限を付与し、deployブランチにpushするように変更
1 parent 60ee524 commit 7d57cdf

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/build-slides.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ on:
77
- 'nuxt/public/slides/**'
88
- 'nuxt/public/slides.json'
99

10+
permissions:
11+
contents: write
12+
1013
jobs:
1114
build-slides:
1215
runs-on: ubuntu-latest
1316

1417
steps:
1518
- uses: actions/checkout@v6
19+
with:
20+
persist-credentials: true
1621

1722
- uses: pnpm/action-setup@v4
1823
with:
@@ -34,4 +39,4 @@ jobs:
3439
git add nuxt/public/slides
3540
git add nuxt/public/slides.json
3641
git commit -m "chore: update slides assets" || echo "No changes"
37-
git push
42+
git push origin HEAD:deploy

0 commit comments

Comments
 (0)