fix: publish first stable release as 0.1.0 (#143)

This commit is contained in:
Andrey Avtomonov 2026-05-19 15:52:30 +02:00 committed by GitHub
parent b4c77c0563
commit 7110aa6f5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 294 additions and 7 deletions

View file

@ -69,6 +69,20 @@ jobs:
- name: Install Python dependencies
run: uv sync --all-packages
- name: Prepare first stable release floor
if: ${{ inputs.release_kind == 'stable' }}
run: |
set -euo pipefail
stable_tags="$(git tag --merged HEAD --list 'v[0-9]*.[0-9]*.[0-9]*' | grep -v '-' || true)"
if [ -n "${stable_tags}" ]; then
exit 0
fi
root_commit="$(git rev-list --max-parents=0 HEAD | tail -n 1)"
git tag v0.0.0 "${root_commit}"
echo "KTX_STABLE_RELEASE_FLOOR_TAG=v0.0.0" >> "${GITHUB_ENV}"
- name: Prepare next prerelease branch
if: ${{ inputs.release_kind == 'rc' }}
run: |