Skip to content

Commit 8cd683f

Browse files
committed
👷 missed release
1 parent f8f18df commit 8cd683f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ on:
44
release:
55
types:
66
- published
7+
workflow_dispatch:
78

89
jobs:
910
pypi-publish:
1011
name: PyPI
11-
if: github.repository_owner == 'juftin'
12+
if: github.repository_owner == 'juftin' && (github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.actor == 'juftin'))
1213
runs-on: ubuntu-latest
1314
steps:
1415
- name: Check out the repository
@@ -29,7 +30,7 @@ jobs:
2930
run: |
3031
hatch build
3132
- name: Publish package on PyPI
32-
uses: pypa/gh-action-pypi-publish@v1.6.4
33+
uses: pypa/gh-action-pypi-publish@release/v1
3334
with:
3435
user: __token__
3536
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)