Skip to content

Instantly share code, notes, and snippets.

@plexus
Created July 11, 2023 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plexus/81ee398ced5c6bde121fcb9703d6e4d9 to your computer and use it in GitHub Desktop.
Save plexus/81ee398ced5c6bde121fcb9703d6e4d9 to your computer and use it in GitHub Desktop.
release:
#!/bin/bash
git clean -xfd ext
export VERSION=$(just version_bump_version)
just update_changelog "${VERSION}"
git add .
git commit -m "Release v${VERSION}"
git tag "v${VERSION}"
update_changelog version:
#!/usr/bin/env -S sh -c 'cat "$0" | ed > /dev/null'
r CHANGELOG.md
1s/Unreleased/{{version}}
1a
(
 / 
)
.
2r !date --iso-8601
4r !git rev-parse --short HEAD
1,6j
1i
# Unreleased
.
wq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment