Skip to content

Commit

Permalink
Build: Release sdist and wheels together.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Mar 29, 2024
1 parent 221e19e commit c99b253
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/wheels.yml
Expand Up @@ -59,12 +59,6 @@ jobs:
run: make html sdist
env: { STATIC_DEPS: false; CFLAGS="-Og" } # it's run-once, so build more quickly

- name: Release
uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
files: dist/*.tar.gz

- name: Upload sdist
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
Expand Down Expand Up @@ -167,29 +161,31 @@ jobs:

upload_release_assets:
name: Upload Release Assets
needs: [ build_wheels ]
needs: [ sdist, build_wheels ]
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Download bdist files
- name: Download artifacts
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2
with:
path: ./wheel_upload
path: ./release_upload
merge-multiple: true

- name: List downloaded artifacts
run: ls -la ./wheel_upload
run: ls -la ./release_upload

- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
path: ./wheel_upload/*.whl
path: ./release_upload/*.whl
name: all_wheels

- name: Release
uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
files: ./wheel_upload/*.whl
files: |
./release_upload/*.whl
./release_upload/*.tar.gz

0 comments on commit c99b253

Please sign in to comment.