Skip to content

Commit 42ec441

Browse files
committed
adds publish to pypi gh action
1 parent 1eec9dd commit 42ec441

File tree

6 files changed

+772
-3
lines changed

6 files changed

+772
-3
lines changed

.github/workflows/publish-to-pypi.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish Python distributions to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build-n-publish:
10+
name: Build and publish Python distributions to PyPI
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Set up Python 3.9
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: 3.9
18+
- name: Install pypa/build
19+
run: >-
20+
python -m
21+
pip install
22+
wheel
23+
--user
24+
- name: Build a binary wheel and a source tarball
25+
run: >-
26+
python
27+
setup.py
28+
sdist
29+
bdist_wheel
30+
release
31+
- name: Publish distribution to PyPI
32+
uses: pypa/gh-action-pypi-publish@master
33+
with:
34+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)