From 0075924608aea6d7d5fe37fd0af7571b02ea27ea Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Tue, 14 Jul 2020 16:03:06 -0400 Subject: [PATCH] Activate automatic publication to PyPI upon release Makes use of the Github Actions definition found here: https://github.com/spacetelescope/action-publish_to_pypi --- .github/workflows/publish-to-pypi.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/publish-to-pypi.yml diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml new file mode 100644 index 0000000..5585871 --- /dev/null +++ b/.github/workflows/publish-to-pypi.yml @@ -0,0 +1,26 @@ +name: Publish to PyPI + +on: + release: + types: [released] + +jobs: + build: + name: Publish release to PyPI + env: + PYPI_USERNAME_STSCI_MAINTAINER: ${{ secrets.PYPI_USERNAME_STSCI_MAINTAINER }} + PYPI_PASSWORD_STSCI_MAINTAINER: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }} + PYPI_USERNAME_OVERRIDE: ${{ secrets.PYPI_USERNAME_OVERRIDE }} + PYPI_PASSWORD_OVERRIDE: ${{ secrets.PYPI_PASSWORD_OVERRIDE }} + PYPI_TEST: ${{ secrets.PYPI_TEST }} + INDEX_URL_OVERRIDE: ${{ secrets.INDEX_URL_OVERRIDE }} + runs-on: ubuntu-latest + steps: + + # Check out the commit containing this workflow file. + - name: checkout repo + uses: actions/checkout@v2 + + - name: custom action + uses: spacetelescope/action-publish_to_pypi@master + id: custom_action_0