Skip to content

Commit d6b227c

Browse files
author
gmartinonQM
committed
use pypa github action
1 parent 764b6c0 commit d6b227c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish to PyPi
22

33
on:
44
release:
5-
types: [created]
5+
types: [published]
66

77
jobs:
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 }}

RELEASE_CHECKLIST.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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:
@@ -18,7 +19,6 @@
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`

0 commit comments

Comments
 (0)