Skip to content

Commit bb6e1e5

Browse files
committed
inital workflow
1 parent 768b90d commit bb6e1e5

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2+
on: push
3+
4+
jobs:
5+
publish:
6+
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
- name: Set up Python 3.7
11+
uses: actions/setup-python@v1
12+
with:
13+
python-version: 3.7
14+
- name: Install pypa/build
15+
run: >-
16+
python -m
17+
pip install build --user
18+
- name: Build a binary wheel and a source tarball
19+
run: >-
20+
python -m
21+
build --sdist --outdir dist/ .
22+
- name: Publish distribution 📦 to Test PyPI
23+
uses: pypa/gh-action-pypi-publish@master
24+
with:
25+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
26+
repository_url: https://test.pypi.org/legacy/
27+

0 commit comments

Comments
 (0)