From 7683651ad4d5a74682c23c624341f278bb047bc8 Mon Sep 17 00:00:00 2001 From: LynithDev <61880709+LynithDev@users.noreply.github.com> Date: Mon, 5 Oct 2026 22:10:13 +0200 Subject: [PATCH] chore: make nightly release action upload portable executables --- .github/workflows/oneclient_nightly.yml | 52 ++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/.github/workflows/oneclient_nightly.yml b/.github/workflows/oneclient_nightly.yml index 19f3d39f..5c7c2c44 100644 --- a/.github/workflows/oneclient_nightly.yml +++ b/.github/workflows/oneclient_nightly.yml @@ -264,21 +264,61 @@ jobs: for f in "${{ steps.outdir.outputs.dir }}"/*.dmg \ "${{ steps.outdir.outputs.dir }}"/*.deb \ "${{ steps.outdir.outputs.dir }}"/*.rpm \ - "${{ steps.outdir.outputs.dir }}"/*.AppImage \ - "${{ steps.outdir.outputs.dir }}"/*-setup.exe; do + "${{ steps.outdir.outputs.dir }}"/*.AppImage; do [ -e "$f" ] || continue cp "$f" dist/ done + # Raw executable, renamed per platform so the unzipped uploads don't collide. + bin="${{ steps.outdir.outputs.dir }}/oneclient_app" + ext="" + [ -e "$bin.exe" ] && ext=".exe" + cp "$bin$ext" "dist/oneclient_app-${{ matrix.os_key }}-${{ matrix.arch }}$ext" if [ -z "$(ls -A dist)" ]; then echo "::error::No installers found in ${{ steps.outdir.outputs.dir }}" exit 1 fi ls -la dist - - name: Upload unsigned installers - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + - name: Upload unsigned executable + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: oneclient-nightly-${{ matrix.os_key }}-${{ matrix.arch }} - path: dist/* + path: dist/oneclient_app-* + archive: false + if-no-files-found: error + retention-days: 14 + + - name: (macOS) Upload unsigned dmg + if: matrix.os_key == 'darwin' + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + path: dist/*.dmg + archive: false + if-no-files-found: error + retention-days: 14 + + - name: (Linux) Upload unsigned deb + if: matrix.os_key == 'linux' + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + path: dist/*.deb + archive: false + if-no-files-found: error + retention-days: 14 + + - name: (Linux) Upload unsigned rpm + if: matrix.os_key == 'linux' + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + path: dist/*.rpm + archive: false + if-no-files-found: error + retention-days: 14 + + - name: (Linux) Upload unsigned AppImage + if: matrix.os_key == 'linux' + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + path: dist/*.AppImage + archive: false if-no-files-found: error retention-days: 14