| 1 | name: Release |
| 2 | |
| 3 | on: |
| 4 | release: |
| 5 | types: [released] |
| 6 | |
| 7 | permissions: |
| 8 | contents: read |
| 9 | |
| 10 | jobs: |
| 11 | build-n-publish: |
| 12 | permissions: |
| 13 | contents: none |
| 14 | if: (github.event_name == 'release') |
| 15 | uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@99401c364fa51c9c507d3cd6d272049278ac0b2c # v2.4.0 |
| 16 | with: |
| 17 | upload_to_pypi: true |
| 18 | test_extras: test |
| 19 | test_command: pytest --pyargs asdf_astropy |
| 20 | secrets: |
| 21 | pypi_token: ${{ secrets.PYPI_PASSWORD }} |