-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use openastronomy github action for release
- Loading branch information
Showing
1 changed file
with
14 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
name: Publish to PyPI | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
publish: | ||
uses: spacetelescope/action-publish_to_pypi/.github/workflows/workflow.yml@master | ||
with: | ||
test: false | ||
build_platform_wheels: false # Set to true if your package contains a C extension | ||
secrets: | ||
user: ${{ secrets.PYPI_USERNAME_ASDF_MAINTAINER }} | ||
password: ${{ secrets.PYPI_PASSWORD_ASDF_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_ASDF_MAINTAINER_TEST }} | ||
name: Publish to PyPI | ||
|
||
on: | ||
release: | ||
types: [released] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1 | ||
with: | ||
upload_to_pypi: ${{ (github.event_name == 'release') && (github.event.action == 'released') }} | ||
secrets: | ||
pypi_token: ${{ secrets.PYPI_PASSWORD_ASDF_MAINTAINER }} |