From 5bfc545289f5bbf6387cc20b9c6ca202a12bb303 Mon Sep 17 00:00:00 2001 From: "Jan C. Brammer" Date: Mon, 26 Oct 2020 08:56:50 +0100 Subject: [PATCH] Switch from TestPyPI to PyPI. --- .github/workflows/publish.yml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f603973..a92a825 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,11 +1,7 @@ name: publish on: - push: - branches: - - dev - #release: - #types: [published] - + release: + types: [published] jobs: @@ -174,13 +170,13 @@ jobs: path: dist # download to "dist" folder - name: Publish - env: - TWINE_USERNAME: ${{ secrets.TESTPYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.TESTPYPI_PASSWORD }} - run: | - twine upload --repository-url https://test.pypi.org/legacy/ dist/* # env: - # TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - # TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + # TWINE_USERNAME: ${{ secrets.TESTPYPI_USERNAME }} + # TWINE_PASSWORD: ${{ secrets.TESTPYPI_PASSWORD }} # run: | - # twine upload dist/* + # twine upload --repository-url https://test.pypi.org/legacy/ dist/* + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + twine upload dist/*