improve release workflow with tags
All checks were successful
Build and Deploy Staging / build (push) Successful in 39s
Tests / test (push) Successful in 26s
Build and Deploy Staging / deploy (push) Successful in 6s

This commit is contained in:
Tobias Brunner 2025-11-13 14:11:46 +01:00
parent 325d274cea
commit 63f5982350
Signed by: tobru
SSH key fingerprint: SHA256:kOXg1R6c11XW3/Pt9dbLdQvOJGFAy+B2K6v6PtRWBGQ
3 changed files with 12 additions and 1 deletions

View file

@ -12,6 +12,9 @@ on:
- "pyproject.toml" - "pyproject.toml"
- "uv.lock" - "uv.lock"
workflow_dispatch: workflow_dispatch:
release:
types:
- published
jobs: jobs:
build: build:

View file

@ -138,4 +138,12 @@ if [ -f "$CHANGELOG_FILE" ]; then
rm -f "$CHANGELOG_FILE" rm -f "$CHANGELOG_FILE"
fi fi
# Fetch the tag that Forgejo created when we made the release
echo -e "${GREEN}Fetching tags from remote to sync the tag created by Forgejo${NC}"
if git fetch --tags; then
echo -e "${GREEN}Tags synced successfully${NC}"
else
echo -e "${YELLOW}Warning: Failed to fetch tags from remote${NC}"
fi
exit 0 exit 0

View file

@ -69,7 +69,7 @@ tag_scope = "default"
pre_commit_hook = "hack/bumpver-pre-commit-hook.sh" pre_commit_hook = "hack/bumpver-pre-commit-hook.sh"
post_commit_hook = "hack/bumpver-post-commit-hook.sh" post_commit_hook = "hack/bumpver-post-commit-hook.sh"
commit = true commit = true
tag = true tag = false
push = true push = true
[tool.bumpver.file_patterns] [tool.bumpver.file_patterns]