Skip to content

feat: add quickstarts to examples dir #5

feat: add quickstarts to examples dir

feat: add quickstarts to examples dir #5

Workflow file for this run

name: Publish Python Package to PyPI
on:
push:
tags:
- 'v*.*.*' # Trigger on version tags like v0.1.0, v1.2.3, etc.
workflow_dispatch: # Allow manual trigger
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install hatch twine
- name: Build package
run: |
cd python
hatch build
- name: Check package
run: |
cd python
twine check dist/*
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
cd python
twine upload dist/*
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: python/dist/*
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}