Skip to content

Commit a8f0886

Browse files
committed
ci: add release condition to trigger release assets
1 parent 98c456e commit a8f0886

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,20 @@ jobs:
7979
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring
8080

8181
- name: Publish to GitHub Release Assets
82+
if: steps.semantic.outputs.released == 'true'
8283
uses: python-semantic-release/publish-action@ae6462adc12bd3d1738070d784b65b5189b955a9 # v10.4.1
8384
with:
8485
github_token: ${{ steps.app-token.outputs.token }}
8586
tag: ${{ steps.semantic.outputs.tag }}
8687

8788
- name: Build distribution
88-
if: needs.release.outputs.released == 'true'
89+
if: steps.semantic.outputs.released == 'true'
8990
run: |
9091
pip install build==1.3.0
9192
python -m build
9293
9394
- name: Publish to PyPI
94-
if: needs.release.outputs.released == 'true'
95+
if: steps.semantic.outputs.released == 'true'
9596
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
9697
with:
9798
packages-dir: dist

0 commit comments

Comments
 (0)