Skip to content

Commit

Permalink
fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hkir-dev committed Sep 17, 2024
1 parent 976b609 commit 0bb728b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/pypi-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,18 @@ jobs:
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}

- name: Publish distribution to PyPI
# - name: Publish distribution to PyPI
# run: |
# poetry config repositories.pypi https://pypi.org/
# poetry version ${{ github.ref_name }}
# poetry publish --build -r pypi -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}

- name: Build
run: |
poetry config repositories.pypi https://pypi.org/legacy/
poetry version ${{ github.ref_name }}
poetry publish --build -r pypi -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
poetry build
- name: Publish
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
poetry publish

0 comments on commit 0bb728b

Please sign in to comment.