Skip to content

Commit 5351f0b

Browse files
committed
automate pypi release on a tag
Signed-off-by: Tushar Goel <[email protected]>
1 parent dd188e4 commit 5351f0b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/pypi-release.yml

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

0 commit comments

Comments
 (0)