Skip to content

Commit

Permalink
Prevent redeploys except from master.
Browse files Browse the repository at this point in the history
Also fix indentation of PR trigger.
  • Loading branch information
reitzig committed May 29, 2020
1 parent b7502f4 commit 0c6c3d9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ name: GitHub Pages

on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
deploy:
Expand Down Expand Up @@ -39,6 +37,7 @@ jobs:
HUGO_ENV_PRIVATE_DOMAIN: "${{ secrets.HUGO_ENV_PRIVATE_DOMAIN }}"

- name: Deploy
if: github.ref == 'ref/head/master' && github.event.repository.fork == false
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 0c6c3d9

Please sign in to comment.