File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Publish to PyPi
22
33on :
44 release :
5- types : [created ]
5+ types : [published ]
66
77jobs :
88 deploy :
@@ -13,14 +13,14 @@ jobs:
1313 uses : actions/setup-python@v2
1414 with :
1515 python-version : ' 3.9'
16- - name : Install dependencies
16+ - name : Install build dependencies
1717 run : |
1818 python -m pip install --upgrade pip
1919 pip install setuptools wheel twine
20- - name : Build and publish
21- env :
22- TWINE_USERNAME : __token__
23- TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN_VTA }}
24- run : |
25- python setup.py sdist bdist_wheel
26- twine upload dist/*
20+ - name : Build package
21+ run : python setup.py sdist bdist_wheel
22+ - name : Publish package
23+ uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
24+ with :
25+ user : __token__
26+ password : ${{ secrets.PYPI_API_TOKEN_VTA }}
Original file line number Diff line number Diff line change 11# Release checklist
22
33- [ ] Update the version number with ` bump2version major|minor|patch `
4+ - [ ] Push new tag to your commit: ` git push --tags `
45- [ ] Edit HISTORY.rst and AUTHORS.rst to make sure it’s up-to-date and add release date
56- [ ] Check whether any new files need to go in MANIFEST.in
67- [ ] Make sure tests run, pass and cover 100% of the package:
1819 * ` python setup.py sdist bdist_wheel `
1920- [ ] Check that your package is ready for publication: ` twine check dist/* `
2021- [ ] Make sure everything is committed and pushed: ` git push origin master `
21- - [ ] Push new tag to your commit: ` git push --tags `
2222- [ ] Upload it to TestPyPi: ` twine upload --repository-url https://test.pypi.org/legacy/ dist/* `
2323- [ ] Test upload on TestPyPi:
2424 * ` cd `
You can’t perform that action at this time.
0 commit comments