File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ name: Deploy static content to Pages
44on :
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'
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
You can’t perform that action at this time.
0 commit comments