Skip to content

Bump OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml from 2.4.0 to 2.6.2 in /.github/workflows in the actions group #1055

Bump OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml from 2.4.0 to 2.6.2 in /.github/workflows in the actions group

Bump OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml from 2.4.0 to 2.6.2 in /.github/workflows in the actions group #1055

Workflow file for this run

name: Wheel building
on:
schedule:
# run every day at 4:30am UTC
- cron: '30 4 * * *'
pull_request:
# We also want this workflow triggered if the 'Build all wheels'
# label is added or present when PR is updated
types:
- synchronize
- labeled
push:
branches:
- '*'
tags:
- '*'
- '!*dev*'
- '!*pre*'
- '!*post*'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build_and_publish:
# This job builds the wheels and publishes them to PyPI for all
# tags, except those ending in ".dev". For PRs with the "Build all
# wheels" label, wheels are built, but are not uploaded to PyPI.
permissions:
contents: none
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@e97344095b099e1d729fe97429078c9975921d8a # v2.6.2
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')))
with:
# We upload to PyPI for all tag pushes, except tags ending in .dev
upload_to_pypi: ${{ startsWith(github.ref, 'refs/tags/') && !endsWith(github.ref, '.dev') && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') }}
test_extras: test
test_command: pytest -p no:warnings --pyargs regions
targets: |
# Linux wheels
- cp3*-manylinux_x86_64
# MacOS X wheels
- cp3*-macosx_x86_64
- cp3*-macosx_arm64
# Windows wheels
- cp3*-win_amd64
# Developer wheels
upload_to_anaconda: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
anaconda_user: astropy
anaconda_package: regions
anaconda_keep_n_latest: 10
secrets:
pypi_token: ${{ secrets.pypi_token }}
anaconda_token: ${{ secrets.anaconda_token }}