From: Ben Darnell Date: Fri, 10 Jun 2022 19:08:59 +0000 (-0400) Subject: build: Run build workflow on tags X-Git-Tag: v6.2.0b1^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4470d6927a598b2d8e7aaf14398ab7ca5b0ed5c6;p=thirdparty%2Ftornado.git build: Run build workflow on tags --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d17eb5f7d..77e61fbd6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,8 @@ on: - "branch[0-9]*" # Also run on certain other branches for testing. - "build-workflow*" + tags: + - "v*" env: python-version: '3.9' @@ -63,6 +65,7 @@ jobs: path: ./wheelhouse/*.whl upload_pypi_test: + name: Upload to PyPI (test) needs: [build_wheels, build_sdist] runs-on: ubuntu-20.04 if: github.event_name == 'push' && startsWith(github.ref_name, 'build-workflow') @@ -77,8 +80,10 @@ jobs: user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository_url: https://test.pypi.org/legacy/ + skip_existing: true upload_pypi: + name: Upload to PyPI (prod) needs: [build_wheels, build_sdist] runs-on: ubuntu-20.04 if: github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref_name, 'v')