Skip to content

Commit b4558b8

Browse files
committed
Implement version checking in pipeline
1 parent 66ae788 commit b4558b8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/pipeline.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,16 @@ jobs:
5555
permissions:
5656
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
5757
steps:
58+
- name: Check whether to release
59+
uses: MathieuMoalic/action-python-package-new-version@v1.0.5
5860
- name: Download files for release
61+
if: env.PUBLISHING == 'true'
5962
uses: actions/download-artifact@v4
6063
with:
6164
name: python-package-distributions
6265
path: dist/
6366
- name: Publish package distributions to PyPI
67+
if: env.PUBLISHING == 'true'
6468
uses: pypa/gh-action-pypi-publish@release/v1
6569
with:
6670
attestations: true
@@ -78,12 +82,16 @@ jobs:
7882
permissions:
7983
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
8084
steps:
85+
- name: Check whether to release
86+
uses: MathieuMoalic/action-python-package-new-version@v1.0.5
8187
- name: Download files for release
88+
if: env.PUBLISHING == 'true'
8289
uses: actions/download-artifact@v4
8390
with:
8491
name: python-package-distributions
8592
path: dist/
8693
- name: Publish package distributions to PyPI
94+
if: env.PUBLISHING == 'true'
8795
uses: pypa/gh-action-pypi-publish@release/v1
8896
with:
8997
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)