1- name : CD Pipeline
1+ name : Publish to PyPi
22
33on :
44 push :
55 branches : [master]
66 release :
77 types : [published]
8- workflow_dispatch :
98
109jobs :
1110 build-release :
1211 name : Build the release
1312 runs-on : ubuntu-latest
1413 if : github.event_name == 'release' && github.repository == 'sequence-toolbox/SeQUeNCe'
1514 steps :
16- - uses : actions/checkout@v6
15+ - uses : actions/checkout@v7
1716 with :
1817 persist-credentials : true
1918 - name : Install uv
2322 - name : Build wheel and tarball
2423 run : uv build
2524 - name : Store dist as an artifact
26- uses : actions/upload-artifact@v4
25+ uses : actions/upload-artifact@v7
2726 with :
2827 name : python-release-package-dist
2928 path : dist/
3332 runs-on : ubuntu-latest
3433 if : github.event_name == 'push' && github.repository == 'sequence-toolbox/SeQUeNCe'
3534 steps :
36- - uses : actions/checkout@v6
35+ - uses : actions/checkout@v7
3736 with :
3837 persist-credentials : true
3938 - name : Install uv
4645 - name : Build wheel and tarball for test
4746 run : uv build
4847 - name : Store test dist as an artifact
49- uses : actions/upload-artifact@v4
48+ uses : actions/upload-artifact@v7
5049 with :
5150 name : python-test-package-dist
5251 path : dist/
@@ -65,12 +64,14 @@ jobs:
6564
6665 steps :
6766 - name : Download all the dists
68- uses : actions/download-artifact@v5
67+ uses : actions/download-artifact@v8
6968 with :
7069 name : python-release-package-dist
7170 path : dist/
7271 - name : Publish dist to TestPyPI
73- uses : pypa/gh-action-pypi-publish@release/v1
72+ uses : pypa/gh-action-pypi-publish@v1.14.0
73+ with :
74+ attestations : true
7475
7576 publish-to-test-pypi :
7677 name : Publish dist to TestPyPi
@@ -87,12 +88,12 @@ jobs:
8788
8889 steps :
8990 - name : Download all the test dists
90- uses : actions/download-artifact@v5
91+ uses : actions/download-artifact@v8
9192 with :
9293 name : python-test-package-dist
9394 path : dist/
9495 - name : Publish dist to TestPyPI
95- uses : pypa/gh-action-pypi-publish@release/v1
96+ uses : pypa/gh-action-pypi-publish@v1.14.0
9697 with :
9798 attestations : true
9899 repository-url : https://test.pypi.org/legacy/
0 commit comments