Skip to content

Commit

Permalink
Generate the extension vsix for each build
Browse files Browse the repository at this point in the history
added the stage Generate .vsix package and Upload VSIX artifact in build.yaml file. Here we are testing in 2 os mac and ubuntu-latest. Hence triggering is enabled for all the branches .

Signed-off-by: lavanyaj3 <[email protected]>
  • Loading branch information
lavanyaj3 authored Sep 18, 2024
1 parent 5535e9b commit ac5e2f4
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ name: CI
# Triggers the workflow on all pushes or pull requests on the main branch
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down Expand Up @@ -34,8 +38,20 @@ jobs:
- name: Run build
run: npm run package

# Generate .vsix package for the extension
- name: Generate .vsix package
run: |
npm install -g @vscode/vsce
vsce package
- name: Upload VSIX artifact
uses: actions/upload-artifact@v4
with:
name: vscode-granite-vsix-${{ runner.os }}-${{ github.run_id }} # Unique name with OS and run ID
path: "./vscode-granite-*.vsix"

# Run tests
- name: Run Test
uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 #v1.0.1
with:
run: npm test
run: npm test

0 comments on commit ac5e2f4

Please sign in to comment.