From f06c2de7aa4fe562e2c1a005846134611b07f85d Mon Sep 17 00:00:00 2001 From: stevejcl Date: Fri, 13 Dec 2024 00:00:22 +0100 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ded1b46..c5a94c4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,15 +48,18 @@ jobs: npm list @tauri-apps/cli - name: Build - if: matrix.platform == 'ubuntu-20.04' || matrix.platform == 'windows-latest' + if: matrix.platform == 'ubuntu-20.04' + run: | + npm run build + npm run prepare:dist + zip -r Dwarfium.zip Dwarfium + + - name: Build Windows + if: matrix.platform == 'windows-latest' run: | npm run build npm run prepare:dist - if [ "${{ matrix.platform }}" == "windows-latest" ]; then - powershell Compress-Archive -Path Dwarfium -DestinationPath Dwarfium.zip - else - zip -r Dwarfium.zip Dwarfium - fi + powershell Compress-Archive -Path Dwarfium -DestinationPath Dwarfium.zip - name: Create artifact Dwarfium if: matrix.platform == 'ubuntu-20.04'