Only run 'Deploy' action on main repository

Deploy action will always fail on forks as the token is not there.
This commit is contained in:
Lioman 2023-10-04 10:58:18 +02:00
commit 5c36cfbb9b

View file

@ -97,7 +97,7 @@ jobs:
environment: Deployment
needs: [test, lint, docs]
runs-on: ubuntu-latest
if: github.ref=='refs/heads/master' && github.event_name!='pull_request'
if: github.ref=='refs/heads/master' && github.event_name!='pull_request' && github.repository == 'getpelican/pelican'
permissions:
contents: write