| 1 |
name: Publish |
| 2 |
|
| 3 |
on: |
| 4 |
schedule: |
| 5 |
# run every day at 4am UTC |
| 6 |
- cron: '0 4 * * *' |
| 7 |
workflow_dispatch: |
| 8 |
pull_request: |
| 9 |
push: |
| 10 |
branches: |
| 11 |
- main |
| 12 |
tags: |
| 13 |
- v* |
| 14 |
|
| 15 |
jobs: |
| 16 |
publish: |
| 17 |
if: (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'Build wheels')) |
| 18 |
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@8c0fde6f7e926df6ed7057255d29afa9c1ad5320 # v1.16.0 |
| 19 |
secrets: |
| 20 |
pypi_token: ${{ secrets.pypi_token }} |
| 21 |
anaconda_token: ${{ secrets.anaconda_token }} |
| 22 |
with: |
| 23 |
targets: | |
| 24 |
- cp3*-manylinux_x86_64 |
| 25 |
- cp3*-musllinux_x86_64 |
| 26 |
- cp3*-win32 |
| 27 |
- cp3*-win_amd64 |
| 28 |
- cp3*-macosx_x86_64 |
| 29 |
- cp3*-macosx_arm64 |
| 30 |
- target: cp3*-manylinux_aarch64 |
| 31 |
runs-on: ubuntu-24.04-arm |
| 32 |
|
| 33 |
# Developer wheels |
| 34 |
upload_to_anaconda: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }} |
| 35 |
anaconda_user: astropy |
| 36 |
anaconda_package: astropy-healpix |
| 37 |
anaconda_keep_n_latest: 10 |