From 38f1c74379e44475511bc90db8ad32a01367a50c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 6 Jul 2020 15:12:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=20Enable=20pypi=20push=20?= =?UTF-8?q?for=20releases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 830ddfbd7..057d9d623 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -158,18 +158,18 @@ jobs: password: ${{ secrets.testpypi_password }} repository_url: https://test.pypi.org/legacy/ - #publish-on-pypi: - # name: 📦 Publish tagged releases to PyPI - # if: github.event_name == 'release' - # needs: publish-on-testpypi - # runs-on: ubuntu-latest - # steps: - # - name: ⬇ Download build result - # uses: actions/download-artifact@v1 - # with: - # name: dist - # path: dist - # - name: 📦 Publish to index - # uses: pypa/gh-action-pypi-publish@master - # with: - # password: ${{ secrets.pypi_password }} + publish-on-pypi: + name: 📦 Publish tagged releases to PyPI + if: github.event_name == 'release' + needs: publish-on-testpypi + runs-on: ubuntu-latest + steps: + - name: ⬇ Download build result + uses: actions/download-artifact@v1 + with: + name: dist + path: dist + - name: 📦 Publish to index + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.pypi_password }}