Skip to content

Release

Release #5

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
build-and-publish:
name: Build and publish tokamak to PyPi
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
environment:
name: PyPi
url: https://pypi.org/p/tokamak
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@v2
with:
tool: just
- uses: "actions/setup-python@v4"
with:
python-version: "3.12"
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install pypa/build
run: uv run build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1