|
|
@ -35,6 +35,11 @@ jobs: |
|
|
|
|
|
|
|
Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP -Force |
|
|
|
|
|
|
|
# Calculate hash |
|
|
|
Get-ChildItem -Path $ZIP -Force | ForEach-Object -Process { |
|
|
|
"$($_.Name) $((Get-FileHash -LiteralPath $_.FullName -Algorithm SHA256).Hash)" |
|
|
|
} | Add-Content -Path SHA256SUM -Encoding Default -Force |
|
|
|
|
|
|
|
- name: Build 7 |
|
|
|
run: | |
|
|
|
$BUILD_DIR = "Sophia Script v" |
|
|
@ -107,6 +112,11 @@ jobs: |
|
|
|
Remove-Item -Path "$PSScriptRoot\CsWinRT", "$PSScriptRoot\SDK" -Recurse -Force |
|
|
|
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 { |
|
|
|
"$($_.Name) $((Get-FileHash -LiteralPath $_.FullName -Algorithm SHA256).Hash)" |
|
|
|
} | Add-Content -Path SHA256SUM -Encoding Default -Force |
|
|
|
|
|
|
|
- name: Build LTSC |
|
|
|
run: | |
|
|
|
$BUILD_DIR = "Sophia Script LTSC v" |
|
|
@ -136,17 +146,29 @@ jobs: |
|
|
|
Write-Host $ZIP |
|
|
|
|
|
|
|
Copy-Item -Path "Wrapper\*" -Destination $BUILD_DIR -Recurse -Force |
|
|
|
|
|
|
|
Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP -Force |
|
|
|
|
|
|
|
- name: SHA256SUM |
|
|
|
run: | |
|
|
|
Get-ChildItem -Path "$PSScriptRoot" -Recurse -Force | fl * |
|
|
|
# Calculate hash |
|
|
|
Get-ChildItem -Path $ZIP -Force | ForEach-Object -Process { |
|
|
|
"$($_.Name) $((Get-FileHash -LiteralPath $_.FullName -Algorithm SHA256).Hash)" |
|
|
|
} | Add-Content -Path SHA256SUM -Encoding Default -Force |
|
|
|
|
|
|
|
- name: Upload archives to release |
|
|
|
uses: svenstaro/upload-release-action@master |
|
|
|
with: |
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
file: Sophia*.zip, SHA256SUM |
|
|
|
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: Sophia*.zip |
|
|
|
file: SHA256SUM |
|
|
|
tag: ${{ github.ref }} |
|
|
|
overwrite: true |
|
|
|
file_glob: true |
|
|
|