Skip to content

Commit

Permalink
Updates the package push logic
Browse files Browse the repository at this point in the history
  • Loading branch information
hiwakaba committed Sep 20, 2024
1 parent e23b800 commit 81c2563
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
build:

runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/k2hr3client
permissions:
id-token: write
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -69,9 +74,7 @@ jobs:
run: python -m build
- name: Publish distribution to PyPI
if: ${{ matrix.python-version == '3.11' && startsWith(github.ref, 'refs/tags') }}
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1

#
# Local variables:
Expand Down

0 comments on commit 81c2563

Please sign in to comment.