File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -87,16 +87,17 @@ jobs:
8787 git log magg/latest..${{ github.sha }} >> $GITHUB_ENV
8888 echo "EOF" >> $GITHUB_ENV
8989
90- # Update the latest tag to point to the current commit
90+ # Delete remote latest tag FIRST (before creating new one)
91+ git push origin :refs/tags/magg/latest || true
92+
93+ # Now create the new latest tag locally
9194 git tag -d magg/latest || true
9295 git tag --no-sign magg/latest
9396
9497 - name : Push changes back to main
9598 run : |
9699 git push origin main
97100 git push origin --tags
98- # Also push the updated latest tag (force in case it exists)
99- git push origin magg/latest --force
100101
101102 - name : Create GitHub Release
102103 uses : softprops/action-gh-release@v2
Original file line number Diff line number Diff line change 11[project ]
22name = " magg"
3- version = " 0.4.1.30 "
3+ version = " 0.4.2.0 "
44requires-python = " >=3.13"
55description = " MCP Aggregator"
66authors = [{ name = " Phillip Sitbon" , email = " phillip.sitbon@gmail.com" }]
@@ -90,7 +90,7 @@ build.sequence = [
9090]
9191
9292sync-git-version.shell = """
93- VERSION=$(echo -n $(uv version --short) | sed 's/\\ (\\ .\\ )[0-9]*$/\\ .'"$(poe -q git rev-list --count HEAD)"'/')
93+ VERSION=$(echo -n $(uv version --short) | sed 's/\\ (\\ .\\ )[0-9]*$/\\ .'"$(git rev-list --count HEAD)"'/')
9494uv version $VERSION
9595git add pyproject.toml uv.lock
9696"""
@@ -100,6 +100,11 @@ echo '[Automatic] Release Version' v$(uv version --short) from $(git show --pret
100100"""
101101
102102verified-publish-commit.shell = """
103+ # Check if there are any changes to commit
104+ if [ -z "$(git status --porcelain)" ]; then
105+ echo "Error: No changes to commit. Version may not have been updated properly."
106+ exit 1
107+ fi
103108git commit -s -S -m "$(poe -q publish-commit-message)"
104109git tag -s -m "$(poe -q publish-commit-message)" magg/v$(uv version --short)
105110"""
You can’t perform that action at this time.
0 commit comments