Skip to content

Commit

Permalink
👷 missed release
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Mar 20, 2024
1 parent f8f18df commit 8cd683f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ on:
release:
types:
- published
workflow_dispatch:

jobs:
pypi-publish:
name: PyPI
if: github.repository_owner == 'juftin'
if: github.repository_owner == 'juftin' && (github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.actor == 'juftin'))
runs-on: ubuntu-latest
steps:
- name: Check out the repository
Expand All @@ -29,7 +30,7 @@ jobs:
run: |
hatch build
- name: Publish package on PyPI
uses: pypa/gh-action-pypi-publish@v1.6.4
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 8cd683f

Please sign in to comment.