fix: include scoop zip hash

relates to #150
This commit is contained in:
Jan De Dobbeleer 2020-11-20 15:48:36 +01:00
parent c1eaa28c99
commit 2a54724a75
2 changed files with 11 additions and 0 deletions

View file

@ -205,3 +205,13 @@ jobs:
asset_path: ${{ github.workspace }}/packages/scoop/posh-windows-wsl-amd64.7z
asset_name: posh-windows-wsl-amd64.7z
asset_content_type: application/octet-stream
- name: Upload Scoop Archive Hash
id: upload-scoop-post-install-hash
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/packages/scoop/posh-windows-wsl-amd64.7z.sha256
asset_name: posh-windows-wsl-amd64.7z.sha256
asset_content_type: text/plain

View file

@ -24,5 +24,6 @@ $content = Get-Content '.\oh-my-posh.json' -Raw
$content = $content.Replace('<VERSION>', $Version)
$content = $content.Replace('<HASH>', $zipHash.Hash)
$content | Out-File -Encoding 'UTF8' './oh-my-posh.json'
$zipHash.Hash | Out-File -Encoding 'UTF8' 'posh-windows-wsl-amd64.7z.sha256'
Remove-Item ./bin/ -Recurse