Skip to content

Commit

Permalink
use OpenAstronomy PyPI upload workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Sep 19, 2023
1 parent 9e7d567 commit 0a694ca
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ name: Publish to PyPI

on:
release:
types: [released]
types: [ released ]

jobs:
publish:
uses: spacetelescope/action-publish_to_pypi/.github/workflows/workflow.yml@master
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@v1
needs: [ check ]
with:
test: false
build_platform_wheels: true # Set to true if your package contains a C extension
targets: |
- linux
- macos
sdist: true
secrets:
user: ${{ secrets.PYPI_USERNAME_STSCI_MAINTAINER }}
password: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }} # WARNING: Do not hardcode secret values here! If you want to use a different user or password, you can override this secret by creating one with the same name in your Github repository settings.
test_password: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER_TEST }}
pypi_token: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }}

0 comments on commit 0a694ca

Please sign in to comment.