Limit pypi and github pages release to push
@@ -180,7 +180,7 @@ jobs:
cd ..
- name: Publish to Github Pages
- if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/convert-to-github-actions'
+ if: github.ref == 'refs/heads/develop' && github.event_name == 'push'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
@@ -223,7 +223,7 @@ jobs:
- name: Publish package
# continue-on-error: true
# Upload files in dist/* directory
- if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/convert-to-github-actions'
+ if: github.ref == 'refs/heads/develop' && github.event_name == 'push'
env:
# Set env variables, 'twine' then uses these to upload to pypi
TWINE_PASSWORD: ${{ secrets.pypi_password }}
