]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
build: Run build workflow on tags v6.2.0b1
authorBen Darnell <ben@bendarnell.com>
Fri, 10 Jun 2022 19:08:59 +0000 (15:08 -0400)
committerBen Darnell <ben@bendarnell.com>
Fri, 10 Jun 2022 19:08:59 +0000 (15:08 -0400)
.github/workflows/build.yml

index d17eb5f7da524af4cef94b4bf8c8c25db984a80f..77e61fbd656eb69d1ae3c164749e96cd6dd89b1d 100644 (file)
@@ -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')