Skip to content

Merge pull request #12 from DynamicalSystemsGroup/restore/publish-env… #4

Merge pull request #12 from DynamicalSystemsGroup/restore/publish-env…

Merge pull request #12 from DynamicalSystemsGroup/restore/publish-env… #4

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- "v*.*.*"
jobs:
publish:
runs-on: ubuntu-latest
# PyPI's trusted publisher for this project names this environment, and the
# claim GitHub sends has to match it. It is also the gate: publishing can be
# restricted here, to people who should release, rather than being available to
# anyone who can push a tag.
environment: pypi
permissions:
id-token: write # required for trusted publishing
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install build tools
run: pip install hatchling build
- name: Build distribution
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1