From f9a52cee6f77b84571b78d4974833d09d4c2f369 Mon Sep 17 00:00:00 2001 From: Josh Mu Date: Mon, 1 Apr 2024 12:53:15 +1000 Subject: [PATCH] fix: pipline vscode publish platform compatibility --- .github/workflows/publish-vscode-extension.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-vscode-extension.yml b/.github/workflows/publish-vscode-extension.yml index 206a408..0b795f2 100644 --- a/.github/workflows/publish-vscode-extension.yml +++ b/.github/workflows/publish-vscode-extension.yml @@ -20,6 +20,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} build: + needs: semantic-release strategy: matrix: include: @@ -68,17 +69,18 @@ jobs: - shell: pwsh run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_ENV - run: npx vsce package --target ${{ env.target }} - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ${{ env.target }} path: "*.vsix" + retention-days: 1 publish: runs-on: ubuntu-latest needs: build if: success() && startsWith( github.ref, 'refs/tags/') steps: - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v4 - run: npx vsce publish --packagePath $(find . -iname *.vsix) env: VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}