From 4af46b95b88035373f34d0dac4274b5ed283fc82 Mon Sep 17 00:00:00 2001 From: thomasjm Date: Sun, 8 Dec 2024 04:34:33 -0800 Subject: [PATCH] Be able to do grand upload to github --- .aliases/upload-to-github | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.aliases/upload-to-github b/.aliases/upload-to-github index 630475b..4948fc5 100755 --- a/.aliases/upload-to-github +++ b/.aliases/upload-to-github @@ -10,7 +10,19 @@ cd "$SCRIPTDIR" cd .. -BUILT=$(nix build .#githubArtifacts --no-link --json | jq -r '.[0].outputs.out') +for arg do + shift + + [ "$arg" = "--grand" ] && GRAND="t" && continue +done + +if [[ -n "$GRAND" ]]; then + BUILT=$(nix build .#grandCombinedGithubArtifacts \ + --builders-use-substitutes --no-link --json | jq -r '.[0].outputs.out') +else + BUILT=$(nix build .#githubArtifacts --no-link --json | jq -r '.[0].outputs.out') +fi + echo "Built: $BUILT" ls "$BUILT" @@ -27,12 +39,13 @@ echo "Saw artifacts:\n$ARTIFACTS" # echo "FIRST_EXECUTABLE: $FIRST_EXECUTABLE" # $FIRST_EXECUTABLE --help > /dev/null 2>&1 +TAG=v"$VERSION" + echo "" echo "This will tag the current commit as $TAG and upload the above aliases to Git." echo "" confirm_execution -TAG=v"$VERSION" echo "Tagging at $TAG" git tag "$TAG" -f echo ""