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