Skip to content

Commit

Permalink
fix: pipline vscode publish platform compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmu committed Apr 1, 2024
1 parent ec117db commit f9a52ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish-vscode-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build:
needs: semantic-release
strategy:
matrix:
include:
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit f9a52ce

Please sign in to comment.