Skip to content

Commit

Permalink
Move skip to affect entire publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
ketozhang committed Apr 29, 2024
1 parent cc742ab commit 90d3f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:

publish:
name: Publish to PyPI
if: ${{ !(inputs.disable-publish || false) }} # Only skips if inputs.disable-publish is true
runs-on: ubuntu-latest
needs: [build_source, build_wheels]

Expand All @@ -93,7 +94,6 @@ jobs:
path: dist/

- name: Publish package to PyPI
if: ${{ !(inputs.disable-publish || false) }} # Only skips if inputs.disable-publish is true
# All files in dist/ are published
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit 90d3f04

Please sign in to comment.