From d09f8a4d93c274e6b8ba81abf166f5b235b3882d Mon Sep 17 00:00:00 2001 From: Teemu R Date: Fri, 14 Jan 2022 17:10:48 +0100 Subject: [PATCH] Perform pypi release on github release (#1298) * Remove testpypi uplodas --- .github/workflows/publish.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c084e25d1..973cd34ef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,7 @@ name: Publish packages on: - push: - branches: - - master + release: + types: [published] jobs: build-n-publish: @@ -32,15 +31,7 @@ jobs: --outdir dist/ . - - name: Publish on test pypi - uses: pypa/gh-action-pypi-publish@master - continue-on-error: true - with: - password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ - - name: Publish release on pypi - if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.PYPI_API_TOKEN }}