Skip to content

chore: upgrade to Python 3.14 and update dependencies (v2.24.2) #3

chore: upgrade to Python 3.14 and update dependencies (v2.24.2)

chore: upgrade to Python 3.14 and update dependencies (v2.24.2) #3

Workflow file for this run

name: Release
on:
pull_request:
types: [closed]
permissions:
contents: write
jobs:
release:
if: >
github.event.pull_request.merged == true &&
(contains(github.event.pull_request.labels.*.name, 'release:patch') ||
contains(github.event.pull_request.labels.*.name, 'release:minor') ||
contains(github.event.pull_request.labels.*.name, 'release:major'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract version
id: version
run: |
VERSION=$(grep '^version = ' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Release version: $VERSION"
- name: Create and push tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
TAG="v${{ steps.version.outputs.version }}"
git tag -a "$TAG" -m "Release $TAG"
git push origin "$TAG"