Skip to content

Commit

Permalink
added pypl fiel
Browse files Browse the repository at this point in the history
Signed-off-by: MRayan Asim <[email protected]>
  • Loading branch information
mrayanasim09 authored Aug 11, 2023
1 parent 723dd1e commit 4e52c81
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish Package to PyPI

on:
push:
tags:
- '*'

jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel setuptools twine
- name: Build distribution package
run: |
python setup.py sdist bdist_wheel
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload dist/*

0 comments on commit 4e52c81

Please sign in to comment.