File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change 1
1
name : deploy-to-pypi
2
2
3
3
on :
4
- push :
5
- branches : [release]
6
-
4
+ releases :
5
+ types : [released]
7
6
jobs :
8
- build :
7
+ release :
9
8
10
9
runs-on : ubuntu-latest
11
10
steps :
@@ -15,13 +14,15 @@ jobs:
15
14
with :
16
15
python-version : ' 3.7.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
17
16
architecture : ' x64' # optional x64 or x86. Defaults to x64 if not specified
18
- - name : compile
17
+ - name : prepare
19
18
run : |
20
- pip3 install wheel
21
- python3 setup.py bdist_wheel --universal
22
- - name : Publish a Python distribution to PyPI
23
- uses : pypa/gh-action-pypi-publish@release/v1
24
- with :
25
- user : ${{secrets.PYPI_API_USERNAME}}
26
- password : ${{ secrets.PYPI_API_PASSWORD }}
27
- verbose : true
19
+ python -m pip install --upgrade pip
20
+ pip install wheel twine setuptools
21
+ - name : Package and Upload
22
+ env :
23
+ ADK_VERSION : ${{github.event.release.tag_name }}
24
+ TWINE_USERNAME : ${{secrets.PYPI_USERNAME }}
25
+ TWINE_PASSWORD : ${{secrets.PYPI_PASSWORD }}
26
+ - run : |
27
+ python3 setup.py sdist bdist_wheel --universal
28
+ twine upload -r pypi dist/*
You can’t perform that action at this time.
0 commit comments