Skip to content

Commit 285a1d1

Browse files
committed
Fix GitHub workflows
1 parent d3ead36 commit 285a1d1

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
- macos-15-intel
1919
python-version:
2020
- '3.11'
21-
- '3.12'
22-
- '3.13'
2321

2422
runs-on: ${{ matrix.os }}
2523

@@ -46,8 +44,9 @@ jobs:
4644
- name: Store distribution
4745
uses: actions/upload-artifact@v6
4846
with:
49-
name: python-package-distributions
47+
name: python-${{ matrix.python-version }}-package-for-${{ matrix.os }}
5048
path: dist/
49+
retention-days: 1
5150

5251
pypi:
5352
name: Publish distribution
@@ -68,8 +67,9 @@ jobs:
6867
- name: Download distribution
6968
uses: actions/download-artifact@v7
7069
with:
71-
name: python-package-distributions
70+
pattern: python-*-package-for-*
7271
path: dist/
72+
merge-multiple: true
7373

7474
- name: Publish distribution to PyPI
7575
uses: pypa/gh-action-pypi-publish@release/v1
@@ -88,8 +88,9 @@ jobs:
8888
- name: Download distribution
8989
uses: actions/download-artifact@v7
9090
with:
91-
name: python-package-distributions
91+
pattern: python-*-package-for-*
9292
path: dist/
93+
merge-multiple: true
9394

9495
- name: Sign distribution with Sigstore
9596
uses: sigstore/[email protected]

.github/workflows/testpypi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
- macos-15-intel
1919
python-version:
2020
- '3.11'
21-
- '3.12'
22-
- '3.13'
2321

2422
runs-on: ${{ matrix.os }}
2523

@@ -46,8 +44,9 @@ jobs:
4644
- name: Store distribution
4745
uses: actions/upload-artifact@v6
4846
with:
49-
name: python-package-distributions
47+
name: python-${{ matrix.python-version }}-package-for-${{ matrix.os }}
5048
path: dist/
49+
retention-days: 1
5150

5251
testpypi:
5352
name: Publish test distribution
@@ -68,8 +67,9 @@ jobs:
6867
- name: Download distribution
6968
uses: actions/download-artifact@v7
7069
with:
71-
name: python-package-distributions
70+
pattern: python-*-package-for-*
7271
path: dist/
72+
merge-multiple: true
7373

7474
- name: Publish distribution to TestPyPI
7575
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)