Skip to content

Commit

Permalink
👷 ci(workflows): update release drafter to conditionally publish
Browse files Browse the repository at this point in the history
- add dynamic publish flag based on build output
- use `needs.build.outputs.is_release` to control release publication
- ensure release is only published when release conditions are met
  • Loading branch information
awwaawwa committed Jan 24, 2025
1 parent e336982 commit 8ce9424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
- name: Publish the release notes
uses: release-drafter/[email protected]
with:
publish: true
publish: ${{ needs.build.outputs.is_release != '' }}
tag: ${{ needs.build.outputs.is_release }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8ce9424

Please sign in to comment.