ci: use twine to upload packages on pypi

This commit is contained in:
Rémi Alvergnat
2023-12-14 10:50:26 +01:00
parent ce62ca94a2
commit edf29168a1
3 changed files with 8 additions and 5 deletions
+7 -3
View File
@@ -275,19 +275,23 @@ jobs:
git config --global user.email "action@github.com"
git config --global user.name "github-actions"
- name: Install python-semantic-release
run: pip install python-semantic-release
- name: Install python-semantic-release twine
run: pip install python-semantic-release twine
- name: Bump version
run: semantic-release version
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload to pypi
run: twine upload --username "__token__" --password "${PYPI_TOKEN}" dist/*.tar.gz dist/*.whl
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
- name: Publish release
run: semantic-release publish
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
- name: Merge master to develop
uses: robotology/gh-action-nightly-merge@v1.4.0