mirror of
https://github.com/zoriya/guessit.git
synced 2026-06-02 10:38:01 +00:00
ci: use twine to upload packages on pypi
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user