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 5454 - {minor: 13, req_build: 'requirements-build-3_13.txt', req_test: 'requirements-dev-3_13.txt'}
5555
5656 runs-on : ${{ matrix.os }}
57+ outputs :
58+ artifact_names : ${{ steps.record_artifacts.outputs.artifact_names }}
5759 steps :
5860 - uses : actions/checkout@master
5961 - uses : actions/setup-python@master
9193 name : dist-wheels-${{ matrix.os }}-py3${{ matrix.python.minor }} # Unique artifact name
9294 path : dist/*
9395
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+
94102 upload :
95103 name : Publish
96104 if : github.event_name == 'release'
@@ -101,10 +109,14 @@ jobs:
101109 with :
102110 name : dist-sdist
103111 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+
108120 - uses : pypa/gh-action-pypi-publish@master
109121 with :
110122 password : ${{ secrets.PYPI_TOKEN }}
You can’t perform that action at this time.
0 commit comments