Skip to content

Commit

Permalink
fix ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks committed Mar 23, 2024
1 parent f9a9a2f commit dd5e790
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
contents: write # needed for github actions bot to write to repo
outputs:
is-released: ${{ steps.release.outputs.released }}
steps:
- name: Clone Repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -92,14 +94,8 @@ jobs:
id: rename_project
run: make rename_project

- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@v9.3.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
# See https://github.com/actions/runner/issues/1173
if: steps.release.outputs.released == 'true'
if: needs.publish.outputs.is-released == 'true'

0 comments on commit dd5e790

Please sign in to comment.