-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable armv7l builds and upgrade to trusted publisher
- Loading branch information
Showing
1 changed file
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,8 @@ on: | |
|
||
jobs: | ||
upload-pypi: | ||
permissions: | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Python | ||
|
@@ -35,7 +37,7 @@ jobs: | |
- name: Build wheels with cibuildwheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_ARCHS_LINUX: aarch64 native | ||
CIBW_ARCHS_LINUX: aarch64 native armv7l | ||
CIBW_SKIP: cp36* pp* *musllinux* | ||
|
||
- name: Move cross-compiled wheels to dist folder | ||
|
@@ -57,15 +59,11 @@ jobs: | |
|
||
- name: Publish package (to TestPyPI) | ||
if: github.event_name == 'workflow_dispatch' | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }} | ||
run: twine upload --repository testpypi dist/* | ||
uses: pypa/[email protected] | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
|
||
- name: Publish to PyPi | ||
# only upload distributions to PyPi when triggered by a published release | ||
if: github.event_name == 'release' | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.pypi_token }} | ||
run: twine upload dist/* | ||
uses: pypa/[email protected] |