From 845b15b2c7cf0d0eaf3f898c0e2f2040d5dfe214 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 9 Sep 2024 15:35:38 -0700 Subject: [PATCH] Use relative in `.sha256sum` files --- bin/package | 8 ++++---- justfile | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/bin/package b/bin/package index 32ea2a8b3f..8372325287 100755 --- a/bin/package +++ b/bin/package @@ -42,15 +42,15 @@ cd $DIST echo "Creating release archive..." case $OS in ubuntu-latest | macos-latest) - ARCHIVE=$DIST/just-$VERSION-$TARGET.tar.gz + ARCHIVE=just-$VERSION-$TARGET.tar.gz tar czf $ARCHIVE * - echo "archive=$ARCHIVE" >> $GITHUB_OUTPUT shasum -a 256 $ARCHIVE > $ARCHIVE.sha256sum + echo "archive=$DIST/$ARCHIVE" >> $GITHUB_OUTPUT ;; windows-latest) - ARCHIVE=$DIST/just-$VERSION-$TARGET.zip + ARCHIVE=just-$VERSION-$TARGET.zip 7z a $ARCHIVE * - echo "archive=`pwd -W`/just-$VERSION-$TARGET.zip" >> $GITHUB_OUTPUT sha256sum $ARCHIVE > $ARCHIVE.sha256sum + echo "archive=`pwd -W`/$ARCHIVE" >> $GITHUB_OUTPUT ;; esac diff --git a/justfile b/justfile index be1ea88af1..9681aecd7d 100755 --- a/justfile +++ b/justfile @@ -232,6 +232,12 @@ test-bash-completions: echo 'bar:' > tmp/foo.just cd tmp && PATH="`realpath bin`:$PATH" bash --init-file just.bash +test-release-workflow: + -git tag -d test-release + -git push origin :test-release + git tag test-release + git push origin test-release + # Local Variables: # mode: makefile # End: