feat(bashrc): add asdf to bash/tools config directory

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>
This commit is contained in:
Andrei Jiroh Halili 2024-05-28 16:02:28 +08:00
parent 0c25c2c362
commit 8ecadd080e
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
[ -s "$HOME/.asdf/asdf.sh" ] && source "$HOME/.asdf/asdf.sh"

View file

@ -1,8 +1,9 @@
#!/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 940047813E9D641C "$project-$version.tar.gz" \
gpg --detach-sign "$@" --default-key "$key" "$project-$version.tar.gz" \
>/tmp/"$project-$version".tar.gz.sig