File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- # This yml file will trigger a Github Actions event that builds and upload the
2- # Python package to PiPy. This makes use of Twine and is triggered when a push
3- # to the master branch occures. For more information see:
4- # https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
5-
61name : Upload Python Package
72
83on :
94 release :
10- types : [created ]
5+ types : [published ]
116
127jobs :
138 deploy :
14-
159 runs-on : ubuntu-latest
16-
1710 steps :
18- - uses : actions/checkout@v2
19- - name : Set up Python
20- uses : actions/setup-python@v2
21- with :
22- python-version : ' 3.x'
23- - name : Install dependencies
24- run : |
25- python -m pip install --upgrade pip
26- pip install setuptools wheel twine
27- - name : Build and publish
28- env :
29- TWINE_USERNAME : __token__
30- TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
31- run : |
32- python setup.py sdist bdist_wheel
33- twine upload dist/*
11+ - uses : actions/checkout@v2
12+ - name : Set up Python
13+ uses : actions/setup-python@v2
14+ with :
15+ python-version : ' 3.x'
16+ - name : Install dependencies
17+ run : |
18+ python -m pip install --upgrade pip
19+ pip install build
20+ - name : Build package
21+ run : python -m build
22+ - name : Publish a Python distribution to PyPI
23+ uses : pypa/gh-action-pypi-publish@release/v1
24+ with :
25+ user : __token__
26+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments