mirror of
https://github.com/casey/just.git
synced 2025-12-23 11:37:29 +00:00
Generate .sha256sum files for release artifacts (#2323)
This commit is contained in:
parent
a26713eda3
commit
10ebaecadb
2 changed files with 5 additions and 1 deletions
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
|
|
@ -99,7 +99,9 @@ jobs:
|
|||
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||
with:
|
||||
draft: false
|
||||
files: ${{ steps.package.outputs.archive }}
|
||||
files: |
|
||||
${{ steps.package.outputs.archive }}
|
||||
${{ steps.package.outputs.archive }}.sha256sum
|
||||
prerelease: ${{ steps.ref-type.outputs.value != 'release' }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
|
|
@ -45,10 +45,12 @@ case $OS in
|
|||
ARCHIVE=$DIST/just-$VERSION-$TARGET.tar.gz
|
||||
tar czf $ARCHIVE *
|
||||
echo "archive=$ARCHIVE" >> $GITHUB_OUTPUT
|
||||
shasum -a 256 $ARCHIVE > $ARCHIVE.sha256sum
|
||||
;;
|
||||
windows-latest)
|
||||
ARCHIVE=$DIST/just-$VERSION-$TARGET.zip
|
||||
7z a $ARCHIVE *
|
||||
echo "archive=`pwd -W`/just-$VERSION-$TARGET.zip" >> $GITHUB_OUTPUT
|
||||
sha256sum $ARCHIVE > $ARCHIVE.sha256sum
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue