Skip to content

pypi-release

pypi-release #4

Workflow file for this run

# Generated by nens-meta.
# See https://nens-meta.readthedocs.io/en/latest/config-files.html for info.
# If you want this file to be left alone, add "nens_meta_leave_alone" in
# all caps somewhere in this file in a comment.
#
name: pypi-release
on:
push:
tags:
- "*"
jobs:
tox:
name: release
runs-on: "ubuntu-latest"
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: python -m pip install tox
- name: Build the package
run: tox -e build_package
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1