From 6566ee1e2df7d24c4bbbb0bfeec1cb5c18c2b332 Mon Sep 17 00:00:00 2001 From: Brett Date: Mon, 26 Feb 2024 14:28:40 -0500 Subject: [PATCH] use openastronomy github action for release --- .github/workflows/publish-to-pypi.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 63d53d89..708d6c69 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -3,14 +3,12 @@ name: Publish to PyPI on: release: types: [released] + workflow_dispatch: jobs: publish: - uses: spacetelescope/action-publish_to_pypi/.github/workflows/workflow.yml@master + uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1 with: - test: false - build_platform_wheels: false # Set to true if your package contains a C extension + upload_to_pypi: ${{ (github.event_name == 'release') && (github.event.action == 'released') }} 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 }} + pypi_token: ${{ secrets.PYPI_PASSWORD_ASDF_MAINTAINER }}