Skip to content

Commit a1dd147

Browse files
committed
gha: Build always, deploy only for main or master
1 parent 8ea7f1a commit a1dd147

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/mkdocs.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
on:
2-
push:
3-
branches:
4-
- main
5-
- master
1+
on: [push, pull_request]
62

73
name: Make Sphinx API Docs
84

@@ -53,6 +49,7 @@ jobs:
5349
MAKEFLAGS: -j2
5450
our_install_dir: $HOME/our_usr/
5551
- name: Deploy Documentation
52+
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' }}
5653
uses: peaceiris/actions-gh-pages@v3
5754
with:
5855
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)