File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 54
54
- {minor: 13, req_build: 'requirements-build-3_13.txt', req_test: 'requirements-dev-3_13.txt'}
55
55
56
56
runs-on : ${{ matrix.os }}
57
+ outputs :
58
+ artifact_names : ${{ steps.record_artifacts.outputs.artifact_names }}
57
59
steps :
58
60
- uses : actions/checkout@master
59
61
- uses : actions/setup-python@master
91
93
name : dist-wheels-${{ matrix.os }}-py3${{ matrix.python.minor }} # Unique artifact name
92
94
path : dist/*
93
95
96
+ - name : Collect artifact name
97
+ run : echo "ARTIFACT_NAMES+=dist-wheels-${{ matrix.os }}-py3${{ matrix.python.minor }} " >> $GITHUB_ENV
98
+
99
+ - id : collect_artifacts
100
+ run : echo "::set-output name=artifact_names::${{ env.ARTIFACT_NAMES }}"
101
+
94
102
upload :
95
103
name : Publish
96
104
if : github.event_name == 'release'
@@ -101,10 +109,14 @@ jobs:
101
109
with :
102
110
name : dist-sdist
103
111
path : dist
104
- - uses : actions/download-artifact@v4
105
- with :
106
- name : dist-wheels-*
107
- path : dist
112
+
113
+ - name : Download wheel artifacts using recorded names
114
+ run : |
115
+ for artifact in ${{ needs.wheels.outputs.artifact_names }}; do
116
+ echo "Downloading artifact: $artifact"
117
+ gh run download -n "$artifact" -D dist || echo "Artifact $artifact not found."
118
+ done
119
+
108
120
- uses : pypa/gh-action-pypi-publish@master
109
121
with :
110
122
password : ${{ secrets.PYPI_TOKEN }}
You can’t perform that action at this time.
0 commit comments