File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ jobs:
1111 - name : Checkout code
1212 uses : actions/checkout@v2
1313
14- - name : Set up Python 3.8
14+ - name : Set up Python 3.9
1515 uses : actions/setup-python@v2
1616 with :
17- python-version : 3.8
17+ python-version : 3.9
1818
1919 - name : Configure pip cache
2020 uses : actions/cache@v2
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ jobs:
1212 - name : Checkout code
1313 uses : actions/checkout@v2
1414
15- - name : Set up Python 3.8
15+ - name : Set up Python 3.9
1616 uses : actions/setup-python@v2
1717 with :
18- python-version : 3.8
18+ python-version : 3.9
1919
2020 - name : Install dependencies
2121 run : |
@@ -49,11 +49,17 @@ jobs:
4949 twine check dist/*
5050 wheel2json dist/*.whl
5151
52- - name : Upload files for tagged releases
52+ - name : Upload to PyPI
5353 env :
5454 TWINE_USERNAME : __token__
5555 TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
56- # only upload files for tagged releases
5756 if : startsWith(github.ref, 'refs/tags/')
5857 run : |
5958 twine upload dist/*
59+
60+ - name : Create GitHub release
61+ uses : softprops/action-gh-release@v1
62+ if : startsWith(github.ref, 'refs/tags/')
63+ with :
64+ files : dist/*.tar.gz
65+ fail_on_unmatched_files : true
You can’t perform that action at this time.
0 commit comments