From 0a694ca3d17e3f4ba907d5e68b49b53135858240 Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Tue, 19 Sep 2023 13:28:48 -0400 Subject: [PATCH] use OpenAstronomy PyPI upload workflow --- .github/workflows/publish-to-pypi.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index d36fd7d2c..c64026658 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -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 }} +