CI: fix deploy on main branch

This commit is contained in:
yunwei37
2023-06-03 23:38:29 +08:00
parent 3acc5ea43e
commit 6be4e577f6
2 changed files with 3 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ jobs:
- name: build and test
run: mdbook build && mdbook test
- name: publish
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository_owner == 'eunomia-bpf'
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'eunomia-bpf'
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: gh-pages