From b3eb70763cda1947eb78fb0e921569112a813500 Mon Sep 17 00:00:00 2001 From: Yugo <150545429+yugook@users.noreply.github.com> Date: Sun, 23 Nov 2025 23:57:33 +0900 Subject: [PATCH] Add VSIX preview artifact upload --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c89a2f0..6715460 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,8 @@ on: jobs: build: runs-on: ubuntu-latest + env: + VSIX_PREVIEW_NAME: securezip-preview-${{ github.run_id }}.vsix steps: - name: Checkout repository @@ -35,3 +37,15 @@ jobs: - name: Run extension integration tests run: xvfb-run -a npm run test + + - name: Package VSIX preview artifact + if: ${{ github.event_name == 'pull_request' }} + run: npx vsce package --out "$VSIX_PREVIEW_NAME" + + - name: Upload VSIX preview artifact + if: ${{ github.event_name == 'pull_request' }} + uses: actions/upload-artifact@v5 + with: + name: securezip-vsix-preview + path: ${{ env.VSIX_PREVIEW_NAME }} + if-no-files-found: error