feat: add create-script and tag-release
This commit is contained in:
parent
3d10ad02db
commit
140b9c13a0
3 changed files with 34 additions and 0 deletions
14
bin/tag-release
Executable file
14
bin/tag-release
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [[ "$1" == "" ]]; then
|
||||
echo "Usage: ${0##*/} <sha=HEAD>"; exit 2
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
commit_sha="${1:-HEAD}"
|
||||
tag="$(date '+%Y-%m-%d-%H.%M.%S')"
|
||||
|
||||
# Tag the appropriate commit and push to the remote.
|
||||
git tag "${tag}" "${commit_sha}"
|
||||
git push origin "refs/tags/${tag}"
|
Loading…
Add table
Add a link
Reference in a new issue