Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use relative in .sha256sum files #2358

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bin/forbid
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ which rg
--glob !bin/forbid \
--glob !CHANGELOG.md \
--ignore-case \
'dbg!|fixme|todo|xxx'
'dbg!|fixme|todo|xxx' \
.
8 changes: 4 additions & 4 deletions bin/package
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down