chore(release): v1.0.0

This commit is contained in:
r4bbit
2026-07-16 10:02:43 +02:00
parent 25b8b86103
commit ad8f8ba82d
3 changed files with 312 additions and 1 deletions
+17 -1
View File
@@ -1,4 +1,4 @@
.PHONY: build-programs clippy clippy-guest clippy-all test integration-test fmt idl
.PHONY: build-programs clippy clippy-guest clippy-all test integration-test fmt idl changelog release
build-programs:
./scripts/build-guests.sh
@@ -27,3 +27,19 @@ idl:
program=$$(basename "$$src" .rs); \
cargo run -p idl-gen -- "$$src" > "artifacts/$${program}-idl.json" || exit 1; \
done
changelog:
git cliff -o CHANGELOG.md
# Cut a release: regenerate the changelog for VERSION, commit it, and tag that
# commit so the tag contains the changelog. Usage: make release VERSION=v0.3.0
# (omit VERSION to let git-cliff pick the next semver from the commit history).
release:
@VERSION="$(VERSION)"; \
if [ -z "$$VERSION" ]; then VERSION=$$(git cliff --bumped-version); fi; \
echo "Releasing $$VERSION"; \
git cliff --tag "$$VERSION" -o CHANGELOG.md && \
git add CHANGELOG.md && \
git commit -m "chore(release): $$VERSION" && \
git tag -a "$$VERSION" -m "$$VERSION" && \
echo "Tagged $$VERSION. Push with: git push origin $$(git rev-parse --abbrev-ref HEAD) $$VERSION"