fix(ci): change checksum tool in macos (#1613)
This commit is contained in:
parent
06a375f6fa
commit
cbb698fb62
1 changed files with 6 additions and 4 deletions
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
|
@ -85,11 +85,14 @@ jobs:
|
||||||
|
|
||||||
- name: Create checksum
|
- name: Create checksum
|
||||||
id: make-checksum
|
id: make-checksum
|
||||||
if: runner.os != 'macos'
|
|
||||||
working-directory: ./target/${{ matrix.target }}/release
|
working-directory: ./target/${{ matrix.target }}/release
|
||||||
run: |
|
run: |
|
||||||
name="zellij-${{ matrix.target }}.sha256sum"
|
name="zellij-${{ matrix.target }}.sha256sum"
|
||||||
|
if [[ "$RUNNER_OS" != "macOS" ]]; then
|
||||||
sha256sum "zellij" > "${name}"
|
sha256sum "zellij" > "${name}"
|
||||||
|
else
|
||||||
|
shasum -a 256 "zellij" > "${name}"
|
||||||
|
fi
|
||||||
echo "::set-output name=name::${name}"
|
echo "::set-output name=name::${name}"
|
||||||
|
|
||||||
- name: Tar release
|
- name: Tar release
|
||||||
|
|
@ -112,7 +115,6 @@ jobs:
|
||||||
|
|
||||||
- name: Upload checksum
|
- name: Upload checksum
|
||||||
uses: actions/upload-release-asset@v1.0.2
|
uses: actions/upload-release-asset@v1.0.2
|
||||||
if: runner.os != 'macos'
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue