1- name : Publish to PyPi
1+ name : Publish to PyPI
22
33on :
44 push :
88
99jobs :
1010 build-release :
11- name : Build the release
11+ name : Build the PyPI release
1212 runs-on : ubuntu-latest
1313 if : github.event_name == 'release' && github.repository == 'sequence-toolbox/SeQUeNCe'
1414 steps :
@@ -21,14 +21,14 @@ jobs:
2121 enable-cache : true
2222 - name : Build wheel and tarball
2323 run : uv build
24- - name : Store dist as an artifact
24+ - name : Store PyPI dist as an artifact
2525 uses : actions/upload-artifact@v7
2626 with :
2727 name : python-release-package-dist
2828 path : dist/
2929
3030 build-test-release :
31- name : Build the test release
31+ name : Build the TestPyPI release
3232 runs-on : ubuntu-latest
3333 if : github.event_name == 'push' && github.repository == 'sequence-toolbox/SeQUeNCe'
3434 steps :
@@ -42,16 +42,16 @@ jobs:
4242 - name : Modify package name for TestPyPI
4343 run : |
4444 sed -i 's/^name = "sequence"/name = "ssequence"/' pyproject.toml
45- - name : Build wheel and tarball for test
45+ - name : Build TestPyPI wheel and tarball
4646 run : uv build
47- - name : Store test dist as an artifact
47+ - name : Store TestPyPI dist as an artifact
4848 uses : actions/upload-artifact@v7
4949 with :
5050 name : python-test-package-dist
5151 path : dist/
5252
5353 publish-to-pypi :
54- name : Publish dist to PyPi
54+ name : Publish dist to PyPI
5555 if : github.event_name == 'release' && github.event.action == 'published' && github.repository == 'sequence-toolbox/SeQUeNCe'
5656 needs :
5757 - build-release
@@ -63,18 +63,18 @@ jobs:
6363 id-token : write
6464
6565 steps :
66- - name : Download all the dists
66+ - name : Download PyPI dist
6767 uses : actions/download-artifact@v8
6868 with :
6969 name : python-release-package-dist
7070 path : dist/
71- - name : Publish dist to TestPyPI
71+ - name : Publish dist to PyPI
7272 uses : pypa/gh-action-pypi-publish@v1.14.0
7373 with :
7474 attestations : true
7575
7676 publish-to-test-pypi :
77- name : Publish dist to TestPyPi
77+ name : Publish dist to TestPyPI
7878 if : github.event_name == 'push' && github.repository == 'sequence-toolbox/SeQUeNCe'
7979 needs :
8080 - build-test-release
8787 id-token : write
8888
8989 steps :
90- - name : Download all the test dists
90+ - name : Download TestPyPI dist
9191 uses : actions/download-artifact@v8
9292 with :
9393 name : python-test-package-dist
9797 with :
9898 attestations : true
9999 repository-url : https://test.pypi.org/legacy/
100- skip-existing : true
100+ skip-existing : true
0 commit comments