Skip to content

Release

Release #130

Workflow file for this run

name: Release
on:
pull_request:
push:
branches:
- main
tags:
- "v*"
workflow_dispatch:
permissions: {}
jobs:
build:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@2835f0cacddf3f8de198db9afdb5354a5cebe0ef # v2
with:
save_artifacts: true
upload_to_pypi: false
test_extras: tests
test_command: pytest --pyargs sphinx_astropy
upload:
if: startsWith(github.ref, 'refs/tags/v')
name: Upload release to PyPI
runs-on: ubuntu-latest
needs: [build]
environment: pypi
permissions:
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
merge-multiple: true
pattern: dist-*
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0