Skip to content

Fix release process with pyproject.toml #8

Fix release process with pyproject.toml

Fix release process with pyproject.toml #8

Workflow file for this run

name: Release to PyPI
on:
push:
tags: ["*"]
jobs:
release:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pkr
permissions:
id-token: write
steps:
- name: Setup python to build package
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install wheel
run: python -m pip install wheel build
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.8.11