File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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/
You can’t perform that action at this time.
0 commit comments