Skip to content

Commit 039f4d4

Browse files
committed
Restoring artifact upload
1 parent 665480b commit 039f4d4

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/wheels.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Wheel build
22

33
on:
4+
release:
5+
types: [created]
46
push:
57
paths:
68
- .github/workflows/wheels.yml
@@ -124,3 +126,35 @@ jobs:
124126
with:
125127
path: ./wheelhouse/*.whl
126128
name: lxml-wheel-${{ matrix.only }}
129+
130+
upload_release_assets:
131+
name: Upload Release Assets
132+
needs: [ build_wheels ]
133+
runs-on: ubuntu-latest
134+
135+
permissions:
136+
contents: write
137+
138+
steps:
139+
- name: Download artifacts
140+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
141+
with:
142+
path: ./release_upload
143+
merge-multiple: true
144+
145+
- name: List downloaded artifacts
146+
run: ls -la ./release_upload
147+
148+
- name: Upload wheels
149+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
150+
with:
151+
path: ./release_upload/*.whl
152+
name: all_wheels
153+
154+
- name: Release
155+
uses: softprops/action-gh-release@v2
156+
if: github.ref_type == 'tag'
157+
with:
158+
files: |
159+
./release_upload/*.whl
160+
./release_upload/*.tar.gz

0 commit comments

Comments
 (0)