mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2024-11-14 02:09:36 +00:00
Andrei Jiroh Halili
8ecadd080e
This should finally elimate the painful manual exports from ~/.asdf/asdf.sh file after initing submodules post-clone. Also in this commit, I also edited the sign-tarball script to not hardcode the GPG key ID when signing. I may implement CLI flags in the future as needed. Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
9 lines
328 B
Bash
Executable file
9 lines
328 B
Bash
Executable file
#!/bin/sh
|
|
project="$(basename $(pwd))"
|
|
version="$(git describe)"
|
|
key="${RELEASE_SIGNING_KEY:-\"940047813E9D641C\"}"
|
|
|
|
git archive --format=tar.gz --prefix="$project-$version/" "$version" \
|
|
>"$project-$version.tar.gz"
|
|
gpg --detach-sign "$@" --default-key "$key" "$project-$version.tar.gz" \
|
|
>/tmp/"$project-$version".tar.gz.sig
|