From 4b40d377c1637339451e3f3b84d9d41813866ac2 Mon Sep 17 00:00:00 2001 From: sappho Date: Sat, 20 Apr 2024 18:07:12 -0400 Subject: [PATCH] Update windows artifacts --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e88d71..2c2c104 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,18 +139,20 @@ jobs: echo "ZIP_FILENAME=${ZIP_FILENAME}" >> $GITHUB_ENV + # if: github.event_name == 'push' && github.ref == 'refs/heads/action' && - name: Package release - Windows - if: github.event_name == 'push' && github.ref == 'refs/heads/action' && startsWith(matrix.os, 'windows-latest') + if: startsWith(matrix.os, 'windows-') working-directory: extension/build/package - run: Compress-Archive -Path * -Destination ${{ env.ZIP_FILENAME }} + run: | + Compress-Archive -Path * -Destination ${{ env.ZIP_FILENAME }} + Copy-Item -Path ${{ env.ZIP_FILENAME }} -Destination ${{ matrix.os }}_${{ matrix.cc }}_${{ env.ZIP_FILENAME }} - - name: Package release - # if: github.event_name == 'push' && github.ref == 'refs/heads/action' && startsWith(matrix.os, 'ubuntu-latest') + - name: Package release - Linux + if: startsWith(matrix.os, 'ubuntu-') working-directory: extension/build/package run: | zip -r "${{ env.ZIP_FILENAME }}" . cp "${{ env.ZIP_FILENAME }}" "${{ matrix.os }}_${{ matrix.cc }}_${{ env.ZIP_FILENAME }}" - - name: Upload release if: github.event_name == 'push' && github.ref == 'refs/heads/action' && (startsWith(matrix.os, 'ubuntu-latest') || startsWith(matrix.os, 'windows-latest'))