Browse Source

Update Sophia.yml

pull/264/head
Dmitry Nefedov 3 years ago
committed by GitHub
parent
commit
76039a4eef
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      .github/workflows/Sophia.yml

14
.github/workflows/Sophia.yml

@ -25,7 +25,7 @@ jobs:
Write-Verbose -Message "Sophia Script for Windows 10 v$LatestRelease" -Verbose
Write-Verbose -Message "Sophia.Script.for.Windows.10.v$LatestRelease.zip" -Verbose
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10" -Recurse -Force | Copy-Item -Destination "Sophia Script for Windows 10 v$LatestRelease" -Recurse -Force
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10" -Force | Copy-Item -Destination "Sophia Script for Windows 10 v$LatestRelease" -Recurse -Force
$Parameters = @{
Path = "Sophia Script for Windows 10 v$LatestRelease"
@ -53,7 +53,7 @@ jobs:
Write-Verbose -Message "Sophia Script for Windows 10 v$LatestRelease PowerShell 7" -Verbose
Write-Verbose -Message "Sophia.Script.for.Windows.10.v$LatestRelease.PowerShell.7.zip" -Verbose
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10 PowerShell 7" -Recurse | Copy-Item -Destination "Sophia Script for Windows 10 v$LatestRelease PowerShell 7" -Recurse -Force
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10 PowerShell 7" -Force | Copy-Item -Destination "Sophia Script for Windows 10 v$LatestRelease PowerShell 7" -Recurse -Force
# Download Microsoft.Windows.SDK.NET.Ref
$Parameters = @{
@ -139,7 +139,7 @@ jobs:
Write-Verbose -Message "Sophia Script for Windows 10 LTSC v$LatestRelease" -Verbose
Write-Verbose -Message "Sophia.Script.for.Windows.10.LTSC.v$LatestRelease.zip" -Verbose
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10 LTSC" -Recurse -Force | Copy-Item -Destination "Sophia Script for Windows 10 LTSC v$LatestRelease" -Recurse -Force
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10 LTSC" -Force | Copy-Item -Destination "Sophia Script for Windows 10 LTSC v$LatestRelease" -Recurse -Force
$Parameters = @{
Path = "Sophia Script for Windows 10 LTSC v$LatestRelease"
@ -166,7 +166,7 @@ jobs:
Write-Verbose -Message "Sophia Script for Windows 11 v$LatestRelease" -Verbose
Write-Verbose -Message "Sophia.Script.for.Windows.11.v$LatestRelease.zip" -Verbose
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 11" -Recurse -Force | Copy-Item -Destination "Sophia Script for Windows 11 v$LatestRelease" -Recurse -Force
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 11" -Force | Copy-Item -Destination "Sophia Script for Windows 11 v$LatestRelease" -Recurse -Force
$Parameters = @{
Path = "Sophia Script for Windows 11 v$LatestRelease"
@ -193,7 +193,7 @@ jobs:
Write-Verbose -Message "Sophia Script for Windows 11 v$LatestRelease PowerShell 7" -Verbose
Write-Verbose -Message "Sophia.Script.for.Windows.11.v$LatestRelease.PowerShell.7.zip" -Verbose
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 11 PowerShell 7" -Recurse -Force | Copy-Item -Destination "Sophia Script for Windows 11 v$LatestRelease PowerShell 7" -Recurse -Force
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 11 PowerShell 7" -Force | Copy-Item -Destination "Sophia Script for Windows 11 v$LatestRelease PowerShell 7" -Recurse -Force
$Parameters = @{
Path = "Sophia Script for Windows 11 v$LatestRelease PowerShell 7"
@ -219,7 +219,7 @@ jobs:
Write-Verbose -Message "Sophia Script Wrapper v$LatestRelease" -Verbose
Write-Verbose -Message "Sophia.Script.Wrapper.v$LatestRelease.zip" -Verbose
Get-ChildItem -Path Wrapper -Exclude README.md -Recurse -Force | Copy-Item -Destination "Sophia Script Wrapper v$LatestRelease" -Recurse -Force
Get-ChildItem -Path Wrapper -Exclude README.md -Force | Copy-Item -Destination "Sophia Script Wrapper v$LatestRelease" -Recurse -Force
$Parameters = @{
Path = "Sophia Script Wrapper v$LatestRelease"
@ -229,7 +229,7 @@ jobs:
Compress-Archive @Parameters
# Calculate hash
Get-ChildItem -Path "Sophia.Script.Wrapper.v$LatestRelease.zip" -Force | ForEach-Object -Process {
Get-Item -Path "Sophia.Script.Wrapper.v$LatestRelease.zip" -Force | ForEach-Object -Process {
"$($_.Name) $((Get-FileHash -LiteralPath $_.FullName -Algorithm SHA256).Hash)"
} | Add-Content -Path SHA256SUM -Encoding Default -Force

Loading…
Cancel
Save