Skip to content

PyPI Release

PyPI Release #1

Workflow file for this run

name: PyPI Release
on:
release:
types:
- published
workflow_dispatch:
jobs:
build:
name: Build distribution
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/fertilizer
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install pypa/build
run: python3 -m pip install build twine --user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1