Skip to content

Commit

Permalink
Be able to do grand upload to github
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Dec 8, 2024
1 parent 70f8771 commit 4af46b9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .aliases/upload-to-github
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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 ""
Expand Down

0 comments on commit 4af46b9

Please sign in to comment.