Skip to content

Commit

Permalink
Merge pull request #49 from overhangio/ziafazal/add-cd
Browse files Browse the repository at this point in the history
feat: add CI script
  • Loading branch information
ziafazal authored Oct 30, 2023
2 parents 4acf445 + 04ff5e0 commit df8418a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish package to PyPi

on:
push:
tags:
- '*'

jobs:

push:
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v1
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install setup tool and wheel
run: pip install setuptools wheel

- name: Build package
run: python setup.py sdist bdist_wheel

- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_UPLOAD_TOKEN }}

0 comments on commit df8418a

Please sign in to comment.