Skip to content

Commit df8418a

Browse files
authored
Merge pull request #49 from overhangio/ziafazal/add-cd
feat: add CI script
2 parents 4acf445 + 04ff5e0 commit df8418a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/publish_pypi.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish package to PyPi
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
10+
push:
11+
runs-on: ubuntu-20.04
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v1
16+
- name: setup python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.8
20+
21+
- name: Install setup tool and wheel
22+
run: pip install setuptools wheel
23+
24+
- name: Build package
25+
run: python setup.py sdist bdist_wheel
26+
27+
- name: Publish to PyPi
28+
uses: pypa/gh-action-pypi-publish@master
29+
with:
30+
user: __token__
31+
password: ${{ secrets.PYPI_UPLOAD_TOKEN }}

0 commit comments

Comments
 (0)