pypi-release #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |