Skip to content

Upload Python Package #11

Upload Python Package

Upload Python Package #11

Workflow file for this run

name: Upload Python Package
on:
release:
types: [created]
jobs:
deploy:
name: upload release to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build dist
run: |
python3 -m pip install --upgrade setuptools wheel twine
python3 setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1