|
|
@ -36,7 +36,7 @@ jobs: |
|
|
|
Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP -Force |
|
|
|
|
|
|
|
# Calculate hash |
|
|
|
Get-ChildItem -Path $ZIP -Force | ForEach-Object -Process { |
|
|
|
Get-Item -Path $ZIP -Force | ForEach-Object -Process { |
|
|
|
"$($_.Name) $((Get-FileHash -LiteralPath $_.FullName -Algorithm SHA256).Hash)" |
|
|
|
} | Add-Content -Path SHA256SUM -Encoding Default -Force |
|
|
|
|
|
|
@ -113,7 +113,7 @@ jobs: |
|
|
|
Remove-Item -Path "$PSScriptRoot\Microsoft.Windows.CsWinRT.zip", "$PSScriptRoot\Microsoft.Windows.SDK.NET.Ref.zip" -Force |
|
|
|
|
|
|
|
# Calculate hash |
|
|
|
Get-ChildItem -Path $ZIP -Force | ForEach-Object -Process { |
|
|
|
Get-Item -Path $ZIP -Force | ForEach-Object -Process { |
|
|
|
"$($_.Name) $((Get-FileHash -LiteralPath $_.FullName -Algorithm SHA256).Hash)" |
|
|
|
} | Add-Content -Path SHA256SUM -Encoding Default -Force |
|
|
|
|
|
|
@ -135,6 +135,11 @@ jobs: |
|
|
|
|
|
|
|
Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP -Force |
|
|
|
|
|
|
|
# Calculate hash |
|
|
|
Get-Item -Path $ZIP -Force | ForEach-Object -Process { |
|
|
|
"$($_.Name) $((Get-FileHash -LiteralPath $_.FullName -Algorithm SHA256).Hash)" |
|
|
|
} | Add-Content -Path SHA256SUM -Encoding Default -Force |
|
|
|
|
|
|
|
- name: Wrapper |
|
|
|
run: | |
|
|
|
$BUILD_DIR = "Sophia Script Wrapper" |
|
|
@ -160,9 +165,18 @@ jobs: |
|
|
|
uses: svenstaro/upload-release-action@master |
|
|
|
with: |
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
file: Sophia*.zip, SHA256SUM |
|
|
|
file: Sophia*.zip |
|
|
|
tag: ${{ github.ref }} |
|
|
|
overwrite: true |
|
|
|
file_glob: true |
|
|
|
prerelease: true |
|
|
|
|
|
|
|
- name: Upload archives to release |
|
|
|
uses: svenstaro/upload-release-action@master |
|
|
|
with: |
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
file: SHA256SUM |
|
|
|
tag: ${{ github.ref }} |
|
|
|
overwrite: true |
|
|
|
file_glob: true |
|
|
|
prerelease: true |
|
|
|