File tree Expand file tree Collapse file tree 2 files changed +46
-2
lines changed Expand file tree Collapse file tree 2 files changed +46
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Python π distributions π¦ to TestPyPI
2+
3+ on :
4+ push :
5+ branches :
6+ - develop
7+
8+ jobs :
9+ build-n-publish :
10+ name : Build and publish Python π distributions π¦ to TestPyPI
11+ runs-on : ubuntu-20.04
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v3
15+ - name : Set up Python
16+ uses : actions/setup-python@v4
17+ with :
18+ python-version : " 3.8"
19+ - name : Upgrade pip
20+ run : >-
21+ python -m
22+ pip install
23+ pip --upgrade
24+ --user
25+ - name : Install pypi/build
26+ run : >-
27+ python -m
28+ pip install
29+ build
30+ --user
31+ - name : Build a binary wheel and a source tarball
32+ run : >-
33+ python -m
34+ build
35+ --sdist
36+ --wheel
37+ --outdir dist/
38+ .
39+ - name : Publish distribution π¦ to TestPyPI
40+ uses : pypa/gh-action-pypi-publish@release/v1
41+ with :
42+ repository-url : https://test.pypi.org/legacy/
43+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
44+ verbose : true
Original file line number Diff line number Diff line change 1- name : Publish Python π distributions π¦ to PyPI and TestPyPI
1+ name : Publish Python π distributions π¦ to PyPI
22
33on :
44 release :
55 types : [prereleased,released]
66
77jobs :
88 build-n-publish :
9- name : Build and publish Python π distributions π¦ to PyPI and TestPyPI
9+ name : Build and publish Python π distributions π¦ to PyPI
1010 runs-on : ubuntu-20.04
1111 steps :
1212 - uses : actions/checkout@v3
You canβt perform that action at this time.
0 commit comments