]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
build: Add pypi upload (non test) for tags build-workflow-publish 3154/head
authorBen Darnell <ben@bendarnell.com>
Fri, 10 Jun 2022 18:23:12 +0000 (14:23 -0400)
committerBen Darnell <ben@bendarnell.com>
Fri, 10 Jun 2022 18:23:12 +0000 (14:23 -0400)
.github/workflows/build.yml

index 94ca3644076ced7d78064b12d4e828e357cb4e9a..d17eb5f7da524af4cef94b4bf8c8c25db984a80f 100644 (file)
@@ -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 }}