We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8f18df commit 8cd683fCopy full SHA for 8cd683f
.github/workflows/publish.yaml
@@ -4,11 +4,12 @@ on:
4
release:
5
types:
6
- published
7
+ workflow_dispatch:
8
9
jobs:
10
pypi-publish:
11
name: PyPI
- if: github.repository_owner == 'juftin'
12
+ if: github.repository_owner == 'juftin' && (github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.actor == 'juftin'))
13
runs-on: ubuntu-latest
14
steps:
15
- name: Check out the repository
@@ -29,7 +30,7 @@ jobs:
29
30
run: |
31
hatch build
32
- name: Publish package on PyPI
- uses: pypa/gh-action-pypi-publish@v1.6.4
33
+ uses: pypa/gh-action-pypi-publish@release/v1
34
with:
35
user: __token__
36
password: ${{ secrets.PYPI_TOKEN }}
0 commit comments