1212 - labeled
1313 push :
1414 branches :
15- - ' * '
15+ - ' main '
1616 tags :
1717 - ' *'
1818 - ' !*dev*'
3434
3535 uses : OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@2835f0cacddf3f8de198db9afdb5354a5cebe0ef # v2.6.3
3636
37- if : (github.repository == 'astropy/regions' && (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'Build all wheels')))
37+ if : |
38+ github.repository == 'astropy/regions' &&
39+ (
40+ github.event_name == 'push' ||
41+ github.event_name == 'schedule' ||
42+ github.event_name == 'workflow_dispatch' ||
43+ contains(github.event.pull_request.labels.*.name, 'Build all wheels')
44+ )
3845 with :
3946 upload_to_pypi : false
4047 save_artifacts : true
@@ -44,16 +51,22 @@ jobs:
4451 targets : |
4552 # Linux wheels
4653 - cp3*-manylinux_x86_64
54+ - target: cp3*-manylinux_aarch64
55+ runs-on: ubuntu-24.04-arm
4756
4857 # MacOS X wheels
4958 - cp3*-macosx_x86_64
5059 - cp3*-macosx_arm64
5160
5261 # Windows wheels
5362 - cp3*-win_amd64
63+ - cp3*-win_arm64
5464
5565 # Developer wheels
56- upload_to_anaconda : ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
66+ upload_to_anaconda : >-
67+ ${{ (github.event_name == 'schedule' ||
68+ github.event_name == 'workflow_dispatch')
69+ }}
5770 anaconda_user : astropy
5871 anaconda_package : regions
5972 anaconda_keep_n_latest : 10
7184 name : pypi
7285 url : https://pypi.org/project/regions
7386 # We upload to PyPI for all tag pushes, except tags ending in .dev
74- if : startsWith(github.ref, 'refs/tags/') && !endsWith(github.ref, '.dev') && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
87+ if : |
88+ needs.build_and_publish.result == 'success' &&
89+ startsWith(github.ref, 'refs/tags/') &&
90+ !endsWith(github.ref, '.dev') &&
91+ (
92+ github.event_name == 'push' ||
93+ github.event_name == 'workflow_dispatch'
94+ )
7595 name : Upload release to PyPI
7696 runs-on : ubuntu-latest
7797 needs : [build_and_publish]
0 commit comments