Skip to content

Commit 17491e8

Browse files
authored
Update release workflow. (#3)
1 parent b42020b commit 17491e8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/release.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Set up Python
19-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: "3.x"
2222
- name: Install pypa/build
@@ -25,7 +25,7 @@ jobs:
2525
- name: Build a binary wheel and a source tarball
2626
run: python3 -m build
2727
- name: Store the distribution packages
28-
uses: actions/upload-artifact@v3
28+
uses: actions/upload-artifact@v4
2929
with:
3030
name: python-package-distributions
3131
path: dist/
@@ -44,7 +44,7 @@ jobs:
4444
id-token: write # IMPORTANT: mandatory for trusted publishing
4545
steps:
4646
- name: Download all the dists
47-
uses: actions/download-artifact@v3
47+
uses: actions/download-artifact@v4
4848
with:
4949
name: python-package-distributions
5050
path: dist/
@@ -65,7 +65,7 @@ jobs:
6565

6666
steps:
6767
- name: Download all the dists
68-
uses: actions/download-artifact@v3
68+
uses: actions/download-artifact@v4
6969
with:
7070
name: python-package-distributions
7171
path: dist/
@@ -96,6 +96,7 @@ jobs:
9696
9797
publish-to-testpypi:
9898
name: Publish Python 🐍 distribution 📦 to TestPyPI
99+
if: startsWith(github.ref, 'refs/tags/') # only publish to TestPyPI on tag pushes
99100
needs:
100101
- build
101102
runs-on: ubuntu-latest
@@ -109,7 +110,7 @@ jobs:
109110

110111
steps:
111112
- name: Download all the dists
112-
uses: actions/download-artifact@v3
113+
uses: actions/download-artifact@v4
113114
with:
114115
name: python-package-distributions
115116
path: dist/

0 commit comments

Comments
 (0)