Skip to content

Commit

Permalink
fix: pypi upload (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Feb 4, 2025
1 parent 31cbc79 commit 5b90015
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ jobs:
- test
- lint
- commitlint
permissions:
id-token: write
contents: write

steps:
- uses: actions/checkout@v4
Expand All @@ -83,8 +86,17 @@ jobs:
# - Update version in code
# - Create git tag
# - Create GitHub release
# - Publish to PyPI
- name: Python Semantic Release
id: release
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'
- name: Upload Github Release Assets
uses: python-semantic-release/[email protected]
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.release.outputs.tag }}

0 comments on commit 5b90015

Please sign in to comment.