From 42f37eb2a127654772def22cee9c7ff32d49929c Mon Sep 17 00:00:00 2001 From: Florian Esser Date: Wed, 20 Nov 2024 09:03:01 +0100 Subject: [PATCH] robust artifact finding instead of a hardcoded ref, find the installer.exe by file name ending. --- .github/workflows/build-installer.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-installer.yml b/.github/workflows/build-installer.yml index 55768062..c1d6254d 100644 --- a/.github/workflows/build-installer.yml +++ b/.github/workflows/build-installer.yml @@ -51,9 +51,10 @@ jobs: npm run build:arc - name: set release path + working-directory: "release" run: | - echo "INSTALLER_EXE_PATH=$((Resolve-Path -Path '.\release\AI Playground-1.22.1-beta-For-arc.exe').Path)" - echo "INSTALLER_EXE_PATH=$((Resolve-Path -Path '.\release\AI Playground-1.22.1-beta-For-arc.exe').Path)" >> $env:GITHUB_ENV + echo "INSTALLER_EXE_PATH=$(Get-ChildItem -Path . -Filter *.exe | Select-Object -ExpandProperty FullName)" + echo "INSTALLER_EXE_PATH=$(Get-ChildItem -Path . -Filter *.exe | Select-Object -ExpandProperty FullName)" >> $env:GITHUB_ENV - uses: actions/upload-artifact@v4 with: