Skip to content

Commit

Permalink
ci: fix semantic release after upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Toilal committed Dec 14, 2023
1 parent 7b15d02 commit af4c390
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,23 @@ jobs:
- name: Install Dependencies
run: pip install -e .[dev,test]

- name: Install python-semantic-release
run: pip install python-semantic-release
- name: Install python-semantic-release and 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/*
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/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

native_requires = ['regex']

dev_require = ['pytest', 'pylint', 'tox']
dev_require = ['pytest', 'pylint', 'tox', 'python-semantic-release', 'twine']

tests_require = ['pytest', 'pylint']

Expand Down

0 comments on commit af4c390

Please sign in to comment.