Skip to content

Commit 7ab9ff1

Browse files
committed
mod: (merged) configure github action properly
mod: use correct gh page action version mod: (gh-action) correct config syntax err mod: (gh-action) use github_token instead of deploy_key mod: use JamesIves/github-pages-deploy-action mod: (gh-action) provite token key to deploy gh page mod: use permissions config instead of secret key
1 parent fec0520 commit 7ab9ff1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
build_and_deploy:
1010
runs-on: ubuntu-latest
1111

12+
permissions:
13+
contents: write
14+
1215
steps:
1316
- uses: actions/checkout@v2
1417

@@ -30,8 +33,7 @@ jobs:
3033
run: pnpm prod
3134

3235
- name: Deploy to GitHub Pages
33-
uses: peaceiris/actions-gh-pages@v4
36+
uses: JamesIves/github-pages-deploy-action@4.1.0
3437
with:
35-
publish-dir: ./build
36-
publish-branch: gh-pages
37-
deploy_key: ${{ secrets.DEPLOY_KEY }}
38+
branch: gh-pages
39+
folder: build

0 commit comments

Comments
 (0)