Skip to content

Commit d55f966

Browse files
authored
CI: only deploy the site when pushing (#382)
Not, for example, on scheduled runs
1 parent 6d8162a commit d55f966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ jobs:
7171
deploy:
7272
runs-on: ubuntu-latest
7373
needs: build
74-
# Do not run this unless *pushing* (`heads`) to `master`
75-
if: github.ref == 'refs/heads/master'
74+
# Do not run this unless *pushing* to `master`
75+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
7676
steps:
7777
- name: Checkout pandocs/gh-pages
7878
uses: actions/checkout@v2

0 commit comments

Comments
 (0)