Skip to content

Commit f3871b8

Browse files
committed
Upload/download artifact changes
1 parent a1675db commit f3871b8

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/pypi.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
runs-on: ${{ matrix.os }}
5050
strategy:
5151
matrix:
52-
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
52+
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
5353
include:
5454
- os: [windows-latest]
5555
arch: ["x86"]
@@ -81,6 +81,7 @@ jobs:
8181
- name: Save wheel
8282
uses: actions/upload-artifact@v4
8383
with:
84+
name: my-artifacts-${{ strategy-job-index }}
8485
path: dist/*.whl
8586
if-no-files-found: error
8687

@@ -90,7 +91,7 @@ jobs:
9091
runs-on: ${{ matrix.os }}
9192
strategy:
9293
matrix:
93-
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
94+
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
9495
include:
9596
- os: [windows-latest]
9697
arch: ["AMD64"]
@@ -122,6 +123,7 @@ jobs:
122123
- name: Save wheel
123124
uses: actions/upload-artifact@v4
124125
with:
126+
name: my-artifacts-${{ strategy-job-index }}
125127
path: dist/*.whl
126128
if-no-files-found: error
127129

@@ -136,7 +138,7 @@ jobs:
136138
id-token: write
137139
if: github.ref == 'refs/heads/main'
138140
steps:
139-
- uses: actions/download-artifact@v2
141+
- uses: actions/download-artifact@v4
140142
with:
141143
name: artifact
142144
path: dist
@@ -157,10 +159,11 @@ jobs:
157159
id-token: write
158160
if: startsWith(github.ref, 'refs/tags/v')
159161
steps:
160-
- uses: actions/download-artifact@v2
162+
- uses: actions/download-artifact@v4
161163
with:
162-
name: artifact
164+
pattern: my-artifacts-*
163165
path: dist
166+
merge-multiple: true
164167

165168
- name: Publish package to PyPI
166169
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
config:
1818
- { os: windows-latest, arch: AMD64, python-arch: x64, name: windows-latest-x64 }
1919
- { os: windows-latest, arch: x86, python-arch: x86, name: windows-latest-x86 }
20-
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
20+
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
2121
steps:
2222
- name: Check out repository
2323
uses: actions/checkout@v3

0 commit comments

Comments
 (0)