Skip to content

chore(release): snakemake-executor-plugin-spawn 0.2.0 (#2) #2

chore(release): snakemake-executor-plugin-spawn 0.2.0 (#2)

chore(release): snakemake-executor-plugin-spawn 0.2.0 (#2) #2

Workflow file for this run

name: Release
on:
push:
tags: ['v*']
permissions:
contents: write # create the GitHub Release
jobs:
release:
name: Build and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.12'
# Tag must match pyproject.toml's version so the artifact and tag never drift.
- name: Verify version matches tag
run: |
set -euo pipefail
tag="${GITHUB_REF_NAME#v}"
ver=$(python -c "import tomllib;print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
echo "tag=$tag pyproject version=$ver"
if [ "$tag" != "$ver" ]; then
echo "::error::tag v$tag does not match pyproject.toml version $ver"
exit 1
fi
- name: Build sdist + wheel
run: |
pip install build
python -m build
- name: Publish release
uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2
with:
files: dist/*
generate_release_notes: true