Skip to content

🚀 Setup PyPI publishing workflow and version management #1

🚀 Setup PyPI publishing workflow and version management

🚀 Setup PyPI publishing workflow and version management #1

Workflow file for this run

name: Publish Python Package
on:
push:
tags:
- "releases/v*"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build and publish
working-directory: ./python
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m build
twine upload dist/*