Skip to content

Commit

Permalink
👷 missed release
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Mar 28, 2024
1 parent 0dddbe8 commit d622c6c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ 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
environment:
name: pypi
url: https://pypi.org/p/llm-term
permissions:
id-token: write
steps:
- name: Check out the repository
uses: actions/checkout@v4
Expand All @@ -28,7 +34,4 @@ jobs:
run: |
hatch build
- name: Publish package on PyPI
uses: pypa/gh-action-pypi-publish@v1.8.10
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit d622c6c

Please sign in to comment.