Skip to content

Commit 003ecb5

Browse files
authored
Merge pull request #70 from dice-roller/feature-deploy-script
Grant write access to deploy script
2 parents 1714f06 + fdf9429 commit 003ecb5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/deploy-to-github-pages.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,21 @@ on:
66
pull_request:
77
branches:
88
- main
9+
permissions:
10+
contents: write
911
jobs:
1012
deploy:
1113
env:
1214
BASE_PATH: ${{ github.event.repository.name }}
1315
DIST_FOLDER: docs/.vuepress/dist
16+
concurrency: ci-${{ github.ref }}
1417
runs-on: ubuntu-latest
1518
steps:
1619
- name: Checkout
17-
uses: actions/checkout@v3
20+
uses: actions/checkout@v6
1821

1922
- name: Setup Node.js environment
20-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v6
2124
with:
2225
node-version: 'lts/*'
2326

@@ -27,7 +30,7 @@ jobs:
2730
BASE_PATH=${{ env.BASE_PATH }} npm run docs:build
2831
2932
- name: Deploy
30-
uses: JamesIves/github-pages-deploy-action@v4.4.1
33+
uses: JamesIves/github-pages-deploy-action@v4
3134
with:
3235
branch: gh-pages
3336
folder: ${{ env.DIST_FOLDER }}

0 commit comments

Comments
 (0)