Browse Source

Update Sophia.yml

pull/135/head
Dmitry Nefedov 4 years ago
committed by GitHub
parent
commit
9a3477e268
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      .github/workflows/Sophia.yml

17
.github/workflows/Sophia.yml

@ -31,10 +31,9 @@ jobs:
Write-Host $BUILD_DIR Write-Host $BUILD_DIR
Write-Host $ZIP Write-Host $ZIP
Copy-Item -Path "Sophia\*" -Destination $BUILD_DIR -Recurse -Force Copy-Item -Path "Sophia\PowerShell 5.1\*" -Destination $BUILD_DIR -Recurse -Force
Copy-Item -Path "Start menu pinning\syspin.exe" -Destination $BUILD_DIR -Force Copy-Item -Path "Start menu pinning\syspin.exe" -Destination $BUILD_DIR -Force
Remove-Item -Path "$BUILD_DIR\PowerShell 7.x" -Recurse -Force
Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP -Force Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP -Force
- name: Build 7.x - name: Build 7.x
@ -57,18 +56,16 @@ jobs:
Write-Host $BUILD_DIR Write-Host $BUILD_DIR
Write-Host $ZIP Write-Host $ZIP
Copy-Item -Path "Sophia\*" -Destination $BUILD_DIR -Recurse -Force Copy-Item -Path "Sophia\PowerShell 5.1\*" -Destination $BUILD_DIR -Recurse -Force
Move-Item -Path "$BUILD_DIR/PowerShell 7.x\*" -Destination $BUILD_DIR -Force Copy-Item -Path "Sophia\PowerShell 7.x\*" -Destination $BUILD_DIR -Recurse -Force
Get-ChildItem -Path "$BUILD_DIR/PowerShell 7.x\*" -Recurse | Move-Item -Destination $BUILD_DIR -Force
Copy-Item -Path "Start menu pinning\syspin.exe" -Destination $BUILD_DIR -Recurse -Force Copy-Item -Path "Start menu pinning\syspin.exe" -Destination $BUILD_DIR -Recurse -Force
Remove-Item -Path "$BUILD_DIR/PowerShell 7.x\" -Force
Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP -Force Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP -Force
- name: Build LTSC - name: Build LTSC
run: | run: |
$BUILD_DIR = "Sophia Script LTSC v" $BUILD_DIR = "Sophia Script LTSC v"
$ModuleVersion = (Import-PowerShellDataFile -Path "LTSC\Sophia.psd1").ModuleVersion $ModuleVersion = (Import-PowerShellDataFile -Path "Sophia\LTSC\Sophia.psd1").ModuleVersion
Write-Host $ModuleVersion Write-Host $ModuleVersion
$BUILD_DIR += $ModuleVersion $BUILD_DIR += $ModuleVersion
@ -79,7 +76,7 @@ jobs:
Write-Host $BUILD_DIR Write-Host $BUILD_DIR
Write-Host $ZIP Write-Host $ZIP
Copy-Item -Path "LTSC\*" -Destination $BUILD_DIR -Recurse -Force Copy-Item -Path "Sophia\LTSC\*" -Destination $BUILD_DIR -Recurse -Force
Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP -Force Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP -Force
@ -104,5 +101,5 @@ jobs:
tag: ${{ github.ref }} tag: ${{ github.ref }}
overwrite: true overwrite: true
file_glob: true file_glob: true
prerelease: true prerelease: false

Loading…
Cancel
Save