-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to Version 20.1.0 + add Upload GitHub Action (#103)
- Update changelog - Add action to upload to PyPI on release creation
- Loading branch information
1 parent
aef4e17
commit 52b9892
Showing
4 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: pypi_upload | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
upload: | ||
name: PyPI Upload | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Install latest pip, setuptools, twine + wheel | ||
run: | | ||
python -m pip install --upgrade pip setuptools twine wheel | ||
- name: Build sdist + wheel | ||
run: | | ||
python setup.py bdist_wheel | ||
python setup.py sdist | ||
- name: Upload to PyPI via Twine | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
run: | | ||
twine upload --verbose -u '__token__' dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
by the way this is a bit redundant -- for pure python tags any future version is compatible with older versions (so this only needs to be
py36
)