-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
18 lines (16 loc) · 697 Bytes
/
Makefile
File metadata and controls
18 lines (16 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
VERSION := $(shell cargo metadata --no-deps --format-version 1 | python3 -c "import sys,json; print(json.load(sys.stdin)['packages'][0]['version'])")
.PHONY: release release-notes
release:
cargo test
cargo clippy --all-targets -- -W clippy::pedantic -D warnings
git add Cargo.toml Cargo.lock
git commit -m "Bump version to $(VERSION)"
git push
git tag v$(VERSION)
git push origin v$(VERSION)
cargo publish
# Run after the CI Release workflow finishes building artifacts and creating the
# GitHub release. Prepend a "What's Changed" section to the release body with
# auto-generated notes from commits since the previous tag.
release-notes:
gh release edit v$(VERSION) --generate-notes