@@ -1,4 +1,4 @@
-name: Docker
+name: Upload Docker Image
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
@@ -9,8 +9,9 @@
name: Upload Python Package
on:
- release:
- types: [published]
+ push:
+ # Publish semver tags as releases.
+ tags: [ 'v*.*.*' ]
permissions:
contents: read
@@ -34,6 +35,3 @@ jobs:
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
- with:
- user: __token__
- password: ${{ secrets.PYPI_API_TOKEN }}