Skip to content

Commit

Permalink
feat: add CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
ziafazal committed Oct 17, 2023
1 parent 4acf445 commit 04ff5e0
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 04ff5e0

Please sign in to comment.