Skip to content

Commit

Permalink
Publish package on marketplace on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
nrontsis committed Nov 3, 2024
1 parent 32cf518 commit 8ee40b7
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,40 @@
name: Build Extension

name: Build and Publish Extension
on:
push:
branches:
- main
tags:
- 'v*'

jobs:
build:
name: Build
name: Build and Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: astral-sh/setup-uv@v3
- run: cd client && npm ci
- name: compile and create vsix

- name: Install Dependencies
run: cd client && npm ci

- name: Compile and Create VSIX
run: |
cd client
npm install
npm install -g vsce
npm run compile
npm run webpack
npm run vscepack
- name: upload vsix as artifact
- name: Upload VSIX as Artifact
uses: actions/upload-artifact@v4
with:
name: extension-package
path: client/*.vsix
path: client/*.vsix

- name: Publish to VS Code Marketplace
if: startsWith(github.ref, 'refs/tags/')
run: |
cd client
vsce publish -p ${{ secrets.VSCODE_MARKETPLACE_PRIVATE_ACCESS_TOKEN }}

0 comments on commit 8ee40b7

Please sign in to comment.