Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

release 4.0.0 (#103) #7

release 4.0.0 (#103)

release 4.0.0 (#103) #7

Workflow file for this run

name: Release streamstore package
on:
push:
tags: ["[0-9]+.[0-9]+.[0-9]+*"]
workflow_dispatch:
jobs:
pypi_package_release:
name: Build and publish to PyPI
runs-on: ubuntu-latest
permissions:
# For PyPI trusted publishing
id-token: write
# For creating github release
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Read release version
id: read_version
uses: SebRollen/toml-action@v1.2.0
with:
file: pyproject.toml
field: project.version
- name: Verify tag and project version
if: ${{ steps.read_version.outputs.value != github.ref_name }}
run: |
echo "::error ::Tag doesn't match project version"
exit 1
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.8.2"
- name: Build package
run: uv build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Read changelog
id: read_changelog
uses: mindsers/changelog-reader-action@v2
with:
version: ${{ steps.read_version.outputs.value }}
- name: Create github release
uses: softprops/action-gh-release@v2
with:
name: ${{ steps.read_version.outputs.value }}
body: ${{ steps.read_changelog.outputs.changes }}