Skip to content

Commit 11d8b1d

Browse files
committed
updated ci
1 parent 3fcadf4 commit 11d8b1d

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ jobs:
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
@@ -91,6 +93,12 @@ jobs:
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 }}

0 commit comments

Comments
 (0)