| 1 | name: build |
| 2 | |
| 3 | on: |
| 4 | release: |
| 5 | types: [ released ] |
| 6 | pull_request: |
| 7 | workflow_dispatch: |
| 8 | |
| 9 | jobs: |
| 10 | build: |
| 11 | uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@v2 |
| 12 | with: |
| 13 | upload_to_pypi: ${{ (github.event_name == 'release') && (github.event.action == 'released') }} |
| 14 | targets: | |
| 15 | # Linux wheels |
| 16 | - cp3*-manylinux_x86_64 |
| 17 | # MacOS wheels |
| 18 | - cp3*-macosx_x86_64 |
| 19 | # Until we have arm64 runners, we can't automatically test arm64 wheels |
| 20 | - cp3*-macosx_arm64 |
| 21 | # Windows wheels |
| 22 | - cp3*-win32 |
| 23 | - cp3*-win_amd64 |
| 24 | sdist: true |
| 25 | test_command: python -c "from drizzle import cdrizzle" |
| 26 | secrets: |
| 27 | pypi_token: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }} |
| 28 |