fix: use pwsh to generate hashes

the hashes generated by hashfiles() somehow aren't correct
This commit is contained in:
Jan De Dobbeleer 2020-11-01 09:35:51 +01:00
parent 64b537b2f5
commit 46fbf3d51c

View file

@ -74,10 +74,10 @@ jobs:
- name: Hash
id: hash
run: |
hash=${{ hashFiles(matrix.ARTIFACT) }}
echo $hash > ${{ matrix.ARTIFACT }}.sha256
echo "::set-output name=hash_${{ matrix.os }}::${hash}"
shell: bash
$fileHash = Get-FileHash ${{ matrix.ARTIFACT }} -Algorithm SHA256
$fileHash.Hash | Out-File -Encoding 'UTF8' ${{ matrix.ARTIFACT }}.sha256
Write-Output "::set-output name=hash_${{ matrix.os }}::$($fileHash.Hash)"
shell: pwsh
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1