Skip to content

Commit

Permalink
CI: Fix .sha256 file
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix committed Jan 20, 2024
1 parent 7b61c82 commit 3d64ae9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ jobs:
if [ "$RUNNER_OS" == "Windows" ]; then
FILENAME=$FILENAME.exe
fi
mv install/bin/$FILENAME $FILENAME
echo "BINARY_NAME=$FILENAME" >> $GITHUB_ENV
echo "ASSET_NAME=${{ matrix.platform.os }}_${{ matrix.platform.arch }}_$FILENAME" >> $GITHUB_ENV
PLATFORM=${{ matrix.platform.os }}_${{ matrix.platform.arch }}
mv install/bin/$FILENAME $PLATFORM_$FILENAME
echo "ASSET_NAME=$PLATFORM_$FILENAME" >> $GITHUB_ENV
shell: bash

- name: Compute checksum of binary
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
sha256sum -b "$BINARY_NAME" > "$ASSET_NAME.sha256"
sha256sum -b "$ASSET_NAME" > "$ASSET_NAME.sha256"
else
shasum -a 256 -b "$BINARY_NAME" > "$ASSET_NAME.sha256"
shasum -a 256 -b "$ASSET_NAME" > "$ASSET_NAME.sha256"
fi
shell: bash

Expand All @@ -59,7 +59,7 @@ jobs:
if: ${{ (github.ref == 'refs/heads/dev') && github.event_name == 'push' }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.BINARY_NAME }}
file: ${{ env.ASSET_NAME }}
asset_name: ${{ env.ASSET_NAME }}
tag: "0.0.0-nightly"
overwrite: true
Expand All @@ -82,7 +82,7 @@ jobs:
if: ${{ startsWith(github.event.ref, 'refs/tags/') }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.BINARY_NAME }}
file: ${{ env.ASSET_NAME }}
asset_name: ${{ env.ASSET_NAME }}
tag: ${{ github.ref }}
overwrite: true
Expand Down

0 comments on commit 3d64ae9

Please sign in to comment.