Skip to content

Commit

Permalink
chore: add cog.toml for release
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Jul 5, 2024
1 parent f6fedb8 commit ee93ac3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ user.bazelrc
compile_commands.json
external
.cache
*.tar.gz
11 changes: 11 additions & 0 deletions cog.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
pre_bump_hooks = [
"buildozer 'set version {{version}}' //MODULE.bazel:%module",
"bazel mod tidy",
]

post_bump_hooks = [
"git push",
"git push origin {{version}}",
"git archive {{version}} -o bzlws-{{version}}.tar.gz",
"gh release create {{version}} ./bzlws-{{version}}.tar.gz --generate-notes --latest -t {{version}} --verify-tag",
]

0 comments on commit ee93ac3

Please sign in to comment.