File tree Expand file tree Collapse file tree 2 files changed +47
-6
lines changed
Expand file tree Collapse file tree 2 files changed +47
-6
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - ' master'
7+ tags :
8+ - ' *'
79
810jobs :
911 build-n-publish :
10- name : Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
12+ name : Build and publish Python 🐍 distributions 📦 to PyPI
1113 runs-on : ubuntu-18.04
1214
1315 steps :
1416 - uses : actions/checkout@master
17+
1518 - name : Set up Python 3.7
1619 uses : actions/setup-python@v2
1720 with :
1821 python-version : 3.7
22+
1923 - name : Install pypa/build
2024 run : >-
2125 python -m
2226 pip install
2327 build
2428 --user
29+
2530 - name : Build a binary wheel and a source tarball
2631 run : >-
2732 python -m
3035 --wheel
3136 --outdir dist/
3237 .
33- - name : Publish distribution 📦 to Test PyPI
34- uses : pypa/gh-action-pypi-publish@master
35- with :
36- password : ${{ secrets.test_pypi_password }}
37- repository_url : https://test.pypi.org/legacy/
38+
3839 - name : Publish distribution 📦 to PyPI
3940 if : startsWith(github.ref, 'refs/tags')
4041 uses : pypa/gh-action-pypi-publish@master
Original file line number Diff line number Diff line change 1+ name : Publish Python 🐍 distributions 📦 to PyPI
2+
3+ on :
4+ push :
5+ branches :
6+ - ' test_deploy'
7+
8+ jobs :
9+ build-n-publish :
10+ name : Build and publish Python 🐍 distributions 📦 to TestPyPI
11+ runs-on : ubuntu-18.04
12+
13+ steps :
14+ - uses : actions/checkout@master
15+
16+ - name : Set up Python 3.7
17+ uses : actions/setup-python@v2
18+ with :
19+ python-version : 3.7
20+
21+ - name : Install pypa/build
22+ run : >-
23+ python -m
24+ pip install
25+ build
26+ --user
27+
28+ - name : Build a binary wheel and a source tarball
29+ run : >-
30+ python -m
31+ build
32+ --sdist
33+ --wheel
34+ --outdir dist/
35+ .
36+ - name : Publish distribution 📦 to Test PyPI
37+ uses : pypa/gh-action-pypi-publish@master
38+ with :
39+ password : ${{ secrets.test_pypi_password }}
40+ repository_url : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments