Skip to content

Commit

Permalink
refactor publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
khasbilegt committed Apr 20, 2024
1 parent 6e0afc4 commit 930b7e0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ on:
jobs:
publish:
runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/qpay
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand Down Expand Up @@ -40,5 +44,8 @@ jobs:
VERSION=${GITHUB_REF#refs/tags/v}
poetry version $VERSION
- name: Publish package
run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
- name: Build package
run: poetry build

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 930b7e0

Please sign in to comment.