Skip to content

Commit

Permalink
feat: add publish package to gha
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Dec 17, 2023
1 parent 1aabe13 commit 11e223e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,16 @@ jobs:

- name: Build package
run: |
poetry version $(git describe --tags --abbrev=0)
poetry version $(git describe --tags --abbrev=0 | sed 's/^v//')
python -m build --sdist --wheel --outdir dist/ .
ls dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

# # - name: Publish package distributions to GitHub Releases
# - name: Build and Publish
Expand All @@ -102,11 +107,7 @@ jobs:
# - name: Publish package distributions to PyPI
# id: pypi-publish

# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# verbose: true
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}


# - name: Publish package distributions to GitHub Releases
# uses: python-semantic-release/upload-to-gh-release@main
Expand Down

0 comments on commit 11e223e

Please sign in to comment.