From beef0e1a0fd1ac3f5a62212947408d32e1fd9d6f Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 9 Sep 2024 15:43:41 -0700 Subject: [PATCH] Use relative in `.sha256sum` files (#2358) --- bin/forbid | 3 ++- bin/package | 8 ++++---- justfile | 6 ++++++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/bin/forbid b/bin/forbid index 6be43d2d..538c780c 100755 --- a/bin/forbid +++ b/bin/forbid @@ -8,4 +8,5 @@ which rg --glob !bin/forbid \ --glob !CHANGELOG.md \ --ignore-case \ - 'dbg!|fixme|todo|xxx' + 'dbg!|fixme|todo|xxx' \ + . diff --git a/bin/package b/bin/package index 32ea2a8b..83723252 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 be1ea88a..9681aecd 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: