chore: make nightly release action upload portable executables
This commit is contained in:
parent
a9fab65a0b
commit
7683651ad4
1 changed files with 46 additions and 6 deletions
52
.github/workflows/oneclient_nightly.yml
vendored
52
.github/workflows/oneclient_nightly.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue