Skip to content

Commit ad21c71

Browse files
authored
Added publish to Pypi after release (#5)
1 parent c9a468e commit ad21c71

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish Python 🐍 distribution 📦 to Pypi
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
build-n-publish:
8+
name: Publish Python 🐍 distribution 📦 to Pypi
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: Set up Python 3.7
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: 3.7
16+
- name: Install pypa/build
17+
run: >-
18+
python -m
19+
pip install
20+
build
21+
--user
22+
- name: Build a binary wheel and a source tarball
23+
run: >-
24+
python -m
25+
build
26+
--sdist
27+
--wheel
28+
--outdir dist/
29+
- name: Publish distribution 📦 to PyPI
30+
uses: pypa/gh-action-pypi-publish@master
31+
with:
32+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)