Skip to content

Release v1.0.0 \o/

Release v1.0.0 \o/ #12

Workflow file for this run

---
name: "Publish PyPi package when a new tag is pushed"
on: # yamllint disable-line rule:truthy
push:
tags:
- 'v*'
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
jobs:
pypi-publish:
name: "upload release to PyPI"
runs-on: "ubuntu-latest"
environment: "pypi-publish"
permissions:
id-token: "write"
steps:
# https://github.com/pypa/sampleproject/blob/main/.github/workflows/release.yml
- name: "Checkout"
uses: "actions/checkout@v3"
- name: "Set up Python"
uses: "actions/setup-python@v4"
with:
python-version: '3.12'
- name: "Install build dependencies"
run: "python -m pip install -U setuptools wheel build"
- name: "Build"
run: "python -m build ."
- name: "Publish package distributions to PyPI"
uses: "pypa/gh-action-pypi-publish@release/v1"
...