Skip to content

Upload Python Package #10

Upload Python Package

Upload Python Package #10

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 build wheel setuptools
python3 -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1