From: Ben Darnell Date: Fri, 10 Jun 2022 18:23:12 +0000 (-0400) Subject: build: Add pypi upload (non test) for tags X-Git-Tag: v6.2.0b1~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc38e3042d43411121dfa18d134e0d30f5065579;p=thirdparty%2Ftornado.git build: Add pypi upload (non test) for tags --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94ca36440..d17eb5f7d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,3 +77,18 @@ jobs: user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository_url: https://test.pypi.org/legacy/ + + upload_pypi: + needs: [build_wheels, build_sdist] + runs-on: ubuntu-20.04 + if: github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref_name, 'v') + steps: + - uses: actions/download-artifact@v2 + with: + name: artifact + path: dist + + - uses: pypa/gh-action-pypi-publish@v1.5.0 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }}