Skip to content

chore: bump version to 2.1.0 #2

chore: bump version to 2.1.0

chore: bump version to 2.1.0 #2

Workflow file for this run

name: Release on GitHub & PyPI
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v7
with:
ref: ${{ github.ref_name }}
# we can add other gpg keys here, just discuss about this with me :)
- run: curl https://github.com/nim65s.gpg | gpg --import
- name: validate signature
run: >
git verify-tag --raw ${{ github.ref_name }} 2>&1
| grep -q 'VALIDSIG 9B1A79065D2F2B806C8A5A1C7D2ACDAF4653CF28'
- run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- uses: astral-sh/setup-uv@v8.2.0
- run: uv --directory v2/scripts build
- run: gh release create -t "Release ${{ env.TAG}}" -n "$(awk '/## \[${{ env.TAG }}] - /{flag=1;next}/## \[/{flag=0}flag' CHANGELOG.md)" ${{ env.TAG }} v2/scripts/dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
packages-dir: v2/scripts/dist