Skip to content

Commit

Permalink
🔧 ci(github-actions): enhance publish workflow conditional logic
Browse files Browse the repository at this point in the history
- update workflow conditions for more robust deployment control
- add conditional checks for PyPI and TestPyPI publish steps
- ensure proper gating of final publish based on previous step outcomes
  • Loading branch information
awwaawwa committed Jan 24, 2025
1 parent 9ee9856 commit 58401a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ jobs:
needs:
- check-repository
- build
if: needs.check-repository.outputs.is_main_repo == 'true'
- publish-to-pypi
- publish-to-testpypi
if: |
needs.check-repository.outputs.is_main_repo == 'true' &&
(needs.publish-to-pypi.result == 'success' || needs.publish-to-testpypi.result == 'success')
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit 58401a0

Please sign in to comment.