Skip to content

Commit 6a55ca0

Browse files
committed
Merge branch 'release/pypipub'
2 parents 5be9bd9 + 387b7a4 commit 6a55ca0

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build-n-publish:
9+
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Set up Python 3.7
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.7
17+
- name: Install pep517
18+
run: >-
19+
python -m
20+
pip install
21+
pep517
22+
--user
23+
- name: Build a binary wheel and a source tarball
24+
run: >-
25+
python -m
26+
pep517.build
27+
--source
28+
--binary
29+
--out-dir dist/
30+
.
31+
- name: Publish distribution 📦 to Test PyPI
32+
uses: pypa/gh-action-pypi-publish@master
33+
with:
34+
password: ${{ secrets.test_pypi_password }}
35+
repository_url: https://test.pypi.org/legacy/
36+
- name: Publish distribution 📦 to PyPI
37+
if: startsWith(github.ref, 'refs/tags')
38+
uses: pypa/gh-action-pypi-publish@master
39+
with:
40+
password: ${{ secrets.pypi_password }}
41+
#verbose: true
42+
#skip_existing: true

0 commit comments

Comments
 (0)