Skip to content

Commit b56cda3

Browse files
authored
Supporting tagged releases and dispatch when Github actions refuse to run (#146)
1 parent 8890a2d commit b56cda3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/pypi-publish.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: Publish tag to Pypi
22

33
on:
4-
release:
5-
types: [published]
4+
workflow_dispatch:
5+
6+
push:
7+
tags:
8+
- 'v[0-9]+.[0-9]+.[0-9]+'
69

710
permissions:
811
contents: read # to fetch code (actions/checkout)
@@ -98,4 +101,4 @@ jobs:
98101
uses: pypa/gh-action-pypi-publish@release/v1
99102
with:
100103
user: __token__
101-
password: ${{ secrets.PYPI_API_TOKEN }}
104+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)