Skip to content

Upload to PyPI

Upload to PyPI #19

Workflow file for this run

name: Upload to PyPI
on:
release:
types: [published]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
upload:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/tdgl
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: "Installs dependencies"
run: |
python -m pip install --upgrade pip
python -m pip install build twine
- name: "Builds distribution"
run: |
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1