Do not run deploy to GitHub Pages for pull requests

This commit is contained in:
Daniel Crha 2020-10-13 16:31:54 +02:00 committed by Kévin Chalet
parent e5f470f8aa
commit 53860119e1

View File

@ -22,6 +22,7 @@ jobs:
args: docfx.json
- name: Deploy to GitHub Pages
if: ${{ github.repository_owner == 'openiddict' && (github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/heads/rel/') || startsWith(github.ref, 'refs/tags/')) }}
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}