mirror of
https://github.com/zoriya/guessit.git
synced 2025-12-06 06:16:09 +00:00
ci: use twine to upload packages on pypi
This commit is contained in:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
version_variables = ["guessit/__version__.py:__version__"]
|
||||
commit_subject = "chore(release): release v{version}"
|
||||
commit_author = "github-actions <actions@github.com>"
|
||||
upload_to_pypi_glob_patterns = "*.tar.gz,*.whl"
|
||||
build_command = ""
|
||||
|
||||
[tool.check-manifest]
|
||||
|
||||
2
setup.py
2
setup.py
@@ -17,7 +17,7 @@ with io.open(os.path.join(here, 'CHANGELOG.md'), encoding='utf-8') as f:
|
||||
|
||||
install_requires = ['rebulk>=3.2.0', 'babelfish>=0.6.0', 'python-dateutil', 'importlib-resources;python_version<"3.9"']
|
||||
|
||||
dev_require = ['tox', 'mkdocs', 'mkdocs-material', 'pyinstaller', 'python-semantic-release', 'wheel']
|
||||
dev_require = ['tox', 'mkdocs', 'mkdocs-material', 'pyinstaller', 'wheel', 'python-semantic-release', 'twine']
|
||||
|
||||
tests_require = ['pytest', 'pytest-mock', 'pytest-benchmark', 'pytest-cov', 'pylint', 'PyYAML']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user