Skip to content

Commit

Permalink
fix(ci): GH and PyPI releases were broken
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Nov 13, 2023
1 parent 4c05234 commit 1db0f2f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ jobs:
with:
platforms: all

- name: Build wheels
uses: pypa/[email protected]
# Build wheels
- run: pip install cibuildwheel==2.16.1
- run: python -m cibuildwheel --output-dir dist
env:
CIBW_TEST_COMMAND: python -m unittest discover -s {package}/tests
CIBW_ARCHS_MACOS: x86_64 arm64 universal2
CIBW_ARCHS_LINUX: auto aarch64
CIBW_ARCHS_LINUX: x86_64 aarch64

# Make wheels downloadable from GitHub UI and from the pypi step
- uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -90,13 +91,11 @@ jobs:

- if: ${{ startsWith(github.ref, 'refs/tags/v') }}
name: "Create GitHub Release"
uses: actions/create-release@v1
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
files: |
dist/*.whl
dist/*.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true

0 comments on commit 1db0f2f

Please sign in to comment.