55 tags :
66 - ' v*'
77
8+ permissions :
9+ contents : write
10+
811jobs :
912 build :
1013 runs-on : windows-latest
@@ -14,28 +17,27 @@ jobs:
1417 - name : Package frontend
1518 shell : powershell
1619 run : |
17- $frontendFiles = Get-ChildItem -Recurse -Path Frontend -File | Where-Object {
18- $_.FullName -notlike "*__pycache__*" -and
19- $_.FullName -notlike "*logs*"
20- }
21- $frontendFiles += Get-ChildItem -Path Setup\uninstall_frontend.ps1
22- Compress-Archive -Path $frontendFiles -DestinationPath "stcgcr-frontend.zip" -Force
20+ robocopy Frontend staging-frontend/Frontend /E /XD "__pycache__" logs | Out-Null
21+ if ($LASTEXITCODE -ge 8) { throw "robocopy failed with exit code $LASTEXITCODE" }
22+ $LASTEXITCODE = 0
23+ Copy-Item Setup/uninstall_frontend.ps1 -Destination "staging-frontend/" -Force
24+ Compress-Archive -Path "staging-frontend/*" -DestinationPath "stcgcr-frontend.zip" -Force
2325
2426 - name : Package backend
2527 shell : powershell
2628 run : |
27- $backendFiles = Get-ChildItem -Recurse -Path Backend -File | Where-Object {
28- $_.FullName -notlike "*__pycache__*" -and
29- $_.FullName -notlike "*poses*" -and
30- $_.FullName -notlike "*logs*"
31- }
32- $backendFiles += Get-ChildItem -Path Setup\uninstall_backend.ps1
33- Compress-Archive -Path $backendFiles -DestinationPath "stcgcr-backend.zip" -Force
29+ robocopy Backend staging-backend/Backend /E /XD "__pycache__" poses logs | Out-Null
30+ if ($LASTEXITCODE -ge 8) { throw "robocopy failed with exit code $LASTEXITCODE" }
31+ $LASTEXITCODE = 0
32+ Copy-Item Setup/uninstall_backend.ps1 -Destination "staging-backend/" -Force
33+ Compress-Archive -Path "staging-backend/*" -DestinationPath "stcgcr-backend.zip" -Force
3434
3535 - name : Create draft release
3636 uses : softprops/action-gh-release@v2
3737 with :
38- files : stcgcr-frontend.zip stcgcr-backend.zip
38+ files : |
39+ stcgcr-frontend.zip
40+ stcgcr-backend.zip
3941 draft : true
4042 tag_name : ${{ github.ref_name }}
4143 env :
0 commit comments