mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-26 22:51:14 +00:00
chore(release): v1.0.0
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user