diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 97383ce..eb94e80 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,7 +1,15 @@ name: Publish Python Package on: - release: - types: [published] + push: + tags: + # Pattern syntax: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet + - "v[0-9]+.[0-9]+.[0-9]+*" + workflow_dispatch: + inputs: + version: + description: 'Version number in the format `v1.2.3`' + required: true + type: string permissions: contents: read jobs: