Skip to content

Commit 926ea16

Browse files
authored
deploy action should only run on the main branch
And should be updated to vefsion 4 to work with new GH security changes
1 parent d78996b commit 926ea16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ jobs:
3939
opam exec -- dune build @doc
4040
4141
- name: Deploy
42-
uses: peaceiris/actions-gh-pages@v3
42+
uses: peaceiris/actions-gh-pages@v4
43+
if: github.ref == 'refs/heads/main'
4344
with:
4445
github_token: ${{ secrets.GITHUB_TOKEN }}
4546
publish_dir: _build/default/_doc/_html

0 commit comments

Comments
 (0)