Skip to content

Commit a237e85

Browse files
authored
Fix publish workflow by setting correct artifact name (#45)
1 parent 284456c commit a237e85

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/build-wheels.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
tags: ["v*"]
77
pull_request:
88
workflow_dispatch:
9-
109

1110
jobs:
1211
build_wheels:
@@ -40,27 +39,29 @@ jobs:
4039
run: python3 -m cibuildwheel --output-dir dist
4140
env:
4241
CIBW_ARCHS: ${{ matrix.archs }}
43-
CIBW_SKIP: '*-musllinux_*'
42+
CIBW_SKIP: "*-musllinux_*"
4443

4544
- uses: actions/upload-artifact@v3
4645
with:
46+
name: release
4747
path: dist/*.whl
4848

4949
make_sdist:
5050
name: Make SDist
5151
runs-on: ubuntu-latest
5252
steps:
53-
- uses: actions/checkout@v3
54-
with:
55-
submodules: true
53+
- uses: actions/checkout@v3
54+
with:
55+
submodules: true
5656

57-
- name: Build SDist
58-
run: pipx run build --sdist
57+
- name: Build SDist
58+
run: pipx run build --sdist
59+
60+
- uses: actions/upload-artifact@v3
61+
with:
62+
name: release
63+
path: dist/*.tar.gz
5964

60-
- uses: actions/upload-artifact@v3
61-
with:
62-
path: dist/*.tar.gz
63-
6465
publish:
6566
name: Publish
6667
needs: [build_wheels, make_sdist]
@@ -70,12 +71,11 @@ jobs:
7071
# only execute on tag push v1 or workflow_dispatch
7172
if: (github.event_name == 'push' && github.ref_type == 'tag') || github.event_name == 'workflow_dispatch'
7273
steps:
73-
- uses: actions/download-artifact@v2
74+
- uses: actions/download-artifact@v3
7475
with:
75-
name: dist
76-
path: dist
76+
name: release
7777

7878
- uses: pypa/gh-action-pypi-publish@release/v1
7979
with:
8080
user: __token__
81-
password: ${{ secrets.PYPI_API_TOKEN }}
81+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)