mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-27 02:51:44 -08:00
parent
c1eaa28c99
commit
2a54724a75
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
@ -205,3 +205,13 @@ jobs:
|
||||||
asset_path: ${{ github.workspace }}/packages/scoop/posh-windows-wsl-amd64.7z
|
asset_path: ${{ github.workspace }}/packages/scoop/posh-windows-wsl-amd64.7z
|
||||||
asset_name: posh-windows-wsl-amd64.7z
|
asset_name: posh-windows-wsl-amd64.7z
|
||||||
asset_content_type: application/octet-stream
|
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
|
||||||
|
|
|
@ -24,5 +24,6 @@ $content = Get-Content '.\oh-my-posh.json' -Raw
|
||||||
$content = $content.Replace('<VERSION>', $Version)
|
$content = $content.Replace('<VERSION>', $Version)
|
||||||
$content = $content.Replace('<HASH>', $zipHash.Hash)
|
$content = $content.Replace('<HASH>', $zipHash.Hash)
|
||||||
$content | Out-File -Encoding 'UTF8' './oh-my-posh.json'
|
$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
|
Remove-Item ./bin/ -Recurse
|
||||||
|
|
Loading…
Reference in a new issue