diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index f974478..d20b610 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -104,13 +104,13 @@ jobs: uses: actions/upload-artifact@v3 with: name: Paarrot-Setup-x64.exe - path: dist-electron/Paarrot-*-win-x64-Setup.exe + path: dist-electron/squirrel-windows/Paarrot-*-win-x64.exe - name: Upload Squirrel Setup (arm64) uses: actions/upload-artifact@v3 with: name: Paarrot-Setup-arm64.exe - path: dist-electron/Paarrot-*-win-arm64-Setup.exe + path: dist-electron/squirrel-windows-arm64/Paarrot-*-win-arm64.exe - name: List build output shell: powershell @@ -120,32 +120,42 @@ jobs: - name: Copy RELEASES file for upload shell: powershell run: | - if (Test-Path \"dist-electron/squirrel-windows/RELEASES\") { - Copy-Item \"dist-electron/squirrel-windows/RELEASES\" -Destination \"dist-electron/RELEASES\" - } elseif (Test-Path \"dist-electron/RELEASES\") { - Write-Output \"RELEASES file already at root\" + if (Test-Path "dist-electron/squirrel-windows/RELEASES") { + Copy-Item "dist-electron/squirrel-windows/RELEASES" -Destination "dist-electron/RELEASES-x64" } else { - Write-Error \"RELEASES file not found\" + Write-Error "RELEASES file not found for x64" + exit 1 + } + if (Test-Path "dist-electron/squirrel-windows-arm64/RELEASES") { + Copy-Item "dist-electron/squirrel-windows-arm64/RELEASES" -Destination "dist-electron/RELEASES-arm64" + } else { + Write-Error "RELEASES file not found for arm64" exit 1 } - - name: Upload Squirrel RELEASES + - name: Upload Squirrel RELEASES (x64) uses: actions/upload-artifact@v3 with: - name: RELEASES - path: dist-electron/RELEASES + name: RELEASES-x64 + path: dist-electron/RELEASES-x64 + + - name: Upload Squirrel RELEASES (arm64) + uses: actions/upload-artifact@v3 + with: + name: RELEASES-arm64 + path: dist-electron/RELEASES-arm64 - name: Upload Squirrel nupkg (x64) uses: actions/upload-artifact@v3 with: name: Paarrot-x64.nupkg - path: dist-electron/Paarrot-*-win-x64-full.nupkg + path: dist-electron/squirrel-windows/*.nupkg - - name: Upload Windows update metadata + - name: Upload Squirrel nupkg (arm64) uses: actions/upload-artifact@v3 with: - name: latest.yml - path: dist-electron/latest.yml + name: Paarrot-arm64.nupkg + path: dist-electron/squirrel-windows-arm64/*.nupkg build-linux: runs-on: ubuntu-latest