File tree 1 file changed +17
-5
lines changed
1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,22 @@ uninstall:
66
66
67
67
release : all
68
68
$(INSTALL ) -d $(TARBALLDIR )
69
+ gh auth status
70
+ git cliff --strip=all --unreleased
69
71
@read -p ' version> ' TAG && \
70
- $(SED ) " s|version = .*|version = \" $$ TAG\" |" -i Cargo.toml && \
72
+ $(SED ) " s|^ version = .*|version = \" $$ TAG\" |" -i Cargo.toml && \
71
73
$(CARGO ) build --release && \
72
- $(GIT ) commit --gpg-sign --message " version: release $$ TAG" Cargo.toml Cargo.lock && \
73
- $(GIT ) tag --sign --message " version: release $$ TAG" $$ TAG && \
74
- $(GIT ) archive -o $(TARBALLDIR ) /git-smash-$$ TAG.$(TARBALLFORMAT ) --format $(TARBALLFORMAT ) --prefix=git-smash-$$ TAG/ $$ TAG && \
75
- $(GPG ) --detach-sign $(TARBALLDIR ) /git-smash-$$ TAG.$(TARBALLFORMAT )
74
+ git cliff --tag " v$$ TAG" > CHANGELOG.md && \
75
+ $(GIT ) commit --gpg-sign --message " chore(release): version v$$ TAG" Cargo.toml Cargo.lock CHANGELOG.md && \
76
+ $(GIT ) tag --sign --message " Version v$$ TAG" v$$ TAG && \
77
+ $(GIT ) archive -o $(TARBALLDIR ) /git-smash-v$$ TAG.$(TARBALLFORMAT ) --format $(TARBALLFORMAT ) --prefix=git-smash-$$ TAG/ v$$ TAG && \
78
+ $(GPG ) --detach-sign $(TARBALLDIR ) /git-smash-v$$ TAG.$(TARBALLFORMAT ) && \
79
+ git push origin main && \
80
+ git push origin v$$ TAG && \
81
+ gh release create \
82
+ --title " v$$ TAG" \
83
+ --notes-file <( git cliff --strip=all --latest) \
84
+ " v$$ TAG" \
85
+ git-smash-v$$ TAG.$(TARBALLFORMAT ) \
86
+ git-smash-v$$ TAG.$(TARBALLFORMAT ) .sig && \
87
+ cargo publish
You can’t perform that action at this time.
0 commit comments