Skip to content

Commit

Permalink
WIP: another different attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
stnava committed Aug 22, 2023
1 parent 3a2cb0b commit a6ce77d
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,13 @@ jobs:
- os: macos-latest
python: '3.9'
cibw_python: 39
arch: universal2
arch: x86_64
platform_id: macosx_x86_64
- os: macos-latest
python: '3.9'
cibw_python: 39
arch: arm64
platform_id: macosx_arm64
- os: macos-latest
python: '3.10'
cibw_python: 310
Expand Down Expand Up @@ -207,8 +212,26 @@ jobs:
with:
name: ${{ env.PACKAGE_NAME }}-${{ env.PACKAGE_VERSION }}-cp${{ matrix.cibw_python }}-${{ matrix.platform_id }}
path: ./wheelhouse/cp${{ matrix.cibw_python }}-${{ matrix.platform_id }}/*.whl

- uses: actions/upload-artifact@v3
with:
name: ${{ env.PACKAGE_NAME }}-${{ env.PACKAGE_VERSION }}-cp${{ matrix.cibw_python }}-${{ matrix.platform_id }}
path: ./dist/*.whl

- uses: actions/upload-artifact@v3
with:
name: ${{ env.PACKAGE_NAME }}-${{ env.PACKAGE_VERSION }}-cp${{ matrix.cibw_python }}-${{ matrix.platform_id }}
path: ./dist/*.tar.gz

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verify_metadata: false
skip_existing: true
verbose: true

- name: Upload release asset
- name: Upload release asset
# Previously was using actions/upload-release-asset@v1 , but this had some
# errors with large files
uses: ncipollo/[email protected]
Expand All @@ -220,23 +243,3 @@ jobs:
artifacts: ./wheelhouse/cp${{ matrix.cibw_python }}-${{ matrix.platform_id }}/*.whl
token: ${{ secrets.GITHUB_TOKEN }}

upload_all:
needs: [build_wheels, make_sdist]
environment: pypi
permissions:
id-token: write
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verify_metadata: false
skip_existing: true
verbose: true

0 comments on commit a6ce77d

Please sign in to comment.