Skip to content

(#8) udpate repo structure #9

(#8) udpate repo structure

(#8) udpate repo structure #9

Workflow file for this run

name: Publish Python Package to PyPI
on:
push:
branches:
- dev
release:
types: [published]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: |
python -m build --sdist --wheel --outdir dist/
- name: Publish to PyPI
run: |
python -m twine upload \
--non-interactive \
--repository-url https://upload.pypi.org/legacy/ \
dist/*
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}