Skip to content

Merge pull request #38 from guanhuaw/feature/update-example-link #17

Merge pull request #38 from guanhuaw/feature/update-example-link

Merge pull request #38 from guanhuaw/feature/update-example-link #17

Workflow file for this run

name: Python-PyPI
on:
push:
branches:
- master
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install build twine
- name: Build package
run: python -m build
- name: Publish to PyPI
if: github.event_name == 'release'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m twine upload dist/*