Skip to content

Commit a747a72

Browse files
authored
fix: ci workflow (#68)
1 parent f9a9a2f commit a747a72

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/ci.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
permissions:
4646
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
4747
contents: write # needed for github actions bot to write to repo
48+
outputs:
49+
is-released: ${{ steps.release.outputs.released }}
4850
steps:
4951
- name: Clone Repository
5052
uses: actions/checkout@v4
@@ -92,14 +94,8 @@ jobs:
9294
id: rename_project
9395
run: make rename_project
9496

95-
- name: Python Semantic Release
96-
id: release
97-
uses: python-semantic-release/python-semantic-release@v9.3.0
98-
with:
99-
github_token: ${{ secrets.GITHUB_TOKEN }}
100-
10197
- name: Publish package distributions to PyPI
10298
uses: pypa/gh-action-pypi-publish@release/v1
10399
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
104100
# See https://github.com/actions/runner/issues/1173
105-
if: steps.release.outputs.released == 'true'
101+
if: needs.publish.outputs.is-released == 'true'

0 commit comments

Comments
 (0)