fix(ci): change checksum tool in macos (#1613)

This commit is contained in:
Jae-Heon Ji 2022-07-29 20:25:14 +09:00 committed by GitHub
parent 06a375f6fa
commit cbb698fb62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,13 +85,16 @@ 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"
sha256sum "zellij" > "${name}" if [[ "$RUNNER_OS" != "macOS" ]]; then
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
id: make-artifact id: make-artifact
working-directory: ./target/${{ matrix.target }}/release working-directory: ./target/${{ matrix.target }}/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: