Skip to content

Commit

Permalink
feat(ci): add dist to GH release and publish to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo4diani committed Aug 12, 2023
1 parent 8f95abf commit a9f6c0b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,18 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Semantic Release
- name: Release to GitHub
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install python-semantic-release
semantic-release version
git fetch --tags
for f in ./dist/**; do gh release upload "$(git describe --abbrev=0)" $f; done
- name: Release to PyPI
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish

0 comments on commit a9f6c0b

Please sign in to comment.