Skip to content

Commit f207972

Browse files
committed
Update workflow
1 parent e424e54 commit f207972

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
1315

1416
steps:
1517
- name: Git checkout
@@ -39,6 +41,7 @@ jobs:
3941

4042
- name: Deploy to GitHub Pages
4143
uses: peaceiris/actions-gh-pages@v4
44+
if: github.ref == 'refs/heads/main'
4245
with:
4346
github_token: ${{ secrets.GITHUB_TOKEN }}
4447
publish_dir: ./build/web

0 commit comments

Comments
 (0)