Skip to content

Merge pull request #79 from AnFreTh/main #5

Merge pull request #79 from AnFreTh/main

Merge pull request #79 from AnFreTh/main #5

name: Publish Package to PyPi
on:
push:
branches:
- release
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish package
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*