Skip to content

Commit c22f78c

Browse files
actions/checkout@v4 and actions/setup-node@v4
1 parent 470ca25 commit c22f78c

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
@@ -4,7 +4,8 @@ name: Deploy static content to Pages
44
on:
55
# Runs on pushes targeting the default branch
66
push:
7-
branches: ['main']
7+
branches:
8+
- main
89

910
# Allows you to run this workflow manually from the Actions tab
1011
workflow_dispatch:
@@ -27,11 +28,13 @@ jobs:
2728
name: github-pages
2829
url: ${{ steps.deployment.outputs.page_url }}
2930
runs-on: ubuntu-latest
31+
permissions:
32+
contents: write
3033
steps:
3134
- name: Checkout
32-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3336
- name: Set up Node
34-
uses: actions/setup-node@v3
37+
uses: actions/setup-node@v4
3538
with:
3639
node-version: 22
3740
cache: 'npm'
@@ -43,7 +46,6 @@ jobs:
4346
run: npm run build
4447
- name: Deploy
4548
uses: peaceiris/actions-gh-pages@v4
46-
if: github.ref == 'refs/heads/main'
4749
with:
4850
github_token: ${{ secrets.GITHUB_TOKEN }}
4951
publish_dir: ./dist

0 commit comments

Comments
 (0)