Skip to content

Merge pull request #12 from TeknoPT/main #10

Merge pull request #12 from TeknoPT/main

Merge pull request #12 from TeknoPT/main #10

name: Build and Publish
on:
push:
branches:
- main # or any branch you want to trigger on
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*