Skip to content

Commit 5da05c7

Browse files
committed
Actions needs content: write for pushing back
1 parent e3b6caa commit 5da05c7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/build.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- "*"
1010

1111
permissions:
12-
contents: read
12+
contents: write
1313
pages: write
1414
id-token: write
1515

@@ -65,10 +65,12 @@ jobs:
6565
: > site/.nojekyll
6666
echo -n '201.ustclug.org' > site/CNAME
6767
- name: Upload artifact
68+
if: github.ref == 'refs/heads/master'
6869
uses: actions/upload-pages-artifact@v3
6970
with:
7071
path: site
7172
- name: Deploy to GitHub Pages
73+
if: github.ref == 'refs/heads/master'
7274
id: deployment
7375
uses: actions/deploy-pages@v4
7476

0 commit comments

Comments
 (0)