Skip to content

Commit 7164fa8

Browse files
chore: siplify the release CI conditions
1 parent 42559f6 commit 7164fa8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Publish package to GitHub Release
5050
uses: python-semantic-release/upload-to-gh-release@main
5151
# NOTE: semrelease output is a string, so we need to compare it to a string
52-
if: ${{ steps.semrelease.outputs.released == 'true' }}
52+
if: steps.semrelease.outputs.released == 'true'
5353
with:
5454
# NOTE: allow to start the workflow when push action on tag gets executed
5555
# requires using GH_APP to authenitcate, otherwise push authorised with
@@ -59,7 +59,7 @@ jobs:
5959
tag: ${{ steps.semrelease.outputs.tag }}
6060

6161
- name: Store the distribution packages
62-
if: ${{ steps.semrelease.outputs.released == 'true' }}
62+
if: steps.semrelease.outputs.released == 'true'
6363
uses: actions/upload-artifact@v4
6464
with:
6565
name: python-package-distributions
@@ -68,7 +68,7 @@ jobs:
6868
publish-to-pypi:
6969
needs: release
7070
name: Publish 📦 in PyPI
71-
if: ${{github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true'}}
71+
if: github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true'
7272
runs-on: ubuntu-latest
7373
environment:
7474
name: pypi
@@ -87,7 +87,7 @@ jobs:
8787
publish-to-testpypi:
8888
name: Publish 📦 in TestPyPI
8989
needs: release
90-
if: ${{github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true'}}
90+
if: github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true'
9191
runs-on: ubuntu-latest
9292

9393
environment:
@@ -111,7 +111,7 @@ jobs:
111111
documentation:
112112
needs: release
113113
runs-on: ubuntu-latest
114-
if: ${{github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true'}}
114+
if: github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true'
115115
steps:
116116
- uses: actions/checkout@v4
117117
with:

0 commit comments

Comments
 (0)