File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ on : [push, pull_request]
2+
3+ jobs :
4+ publish :
5+ name : build and publish to pypi
6+ runs-on : ubuntu-latest
7+ steps :
8+ - uses : actions/checkout@v2
9+
10+ - name : Set up Python
11+ uses : actions/setup-python@v1
12+ with :
13+ python-version : 3.9
14+
15+ - name : install dependencies & build
16+ run : |
17+ pip3 install setuptools build wheel
18+ python3 setup.py sdist bdist_wheel
19+
20+ - name : publish to Test PyPi
21+ uses : pypa/gh-action-pypi-publish@release/v1
22+ with :
23+ skip_existing : true
24+ user : __token__
25+ password : ${{ secrets.TEST_PYPI_TOKEN }}
26+ repository_url : https://test.pypi.org/legacy/
27+
28+ - name : publish to PyPi
29+ if : startsWith(github.ref, 'refs/tags')
30+ uses : pypa/gh-action-pypi-publish@release/v1
31+ with :
32+ user : __token__
33+ password : ${{ secrets.PYPI_TOKEN }}
You can’t perform that action at this time.
0 commit comments