Skip to content

Commit

Permalink
Run release and docs step if workflow triggered by push
Browse files Browse the repository at this point in the history
  • Loading branch information
Crozzers committed Oct 7, 2023
1 parent bbaaf8f commit 8436058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
packages-dir: ./
repository-url: https://test.pypi.org/legacy/
- name: Publish to PyPI
if: ${{ inputs.pypi != false }}
if: ${{ inputs.pypi == true || github.event_name == 'push' }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
Expand All @@ -121,7 +121,7 @@ jobs:
name: "${{ needs.getversion.outputs.version }}"
tag_name: ${{ needs.getversion.outputs.version }}
docs:
if: ${{ inputs.docs != false }}
if: ${{ inputs.docs == true || github.event_name == 'push' }}
needs: [release]
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 8436058

Please sign in to comment.