-
Notifications
You must be signed in to change notification settings - Fork 34
41 lines (38 loc) · 1014 Bytes
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build VSCode extension
on:
push:
branches: '**'
pull_request:
branches: [main]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout liberty-tools-vscode
uses: actions/checkout@v3
with:
path: liberty-tools-vscode
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Build Liberty Tools for VSCode
working-directory: ./liberty-tools-vscode
run: |
npm install
npm install -g vsce
npm run build
npm run compile
vsce package
- name: Archive artifacts
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
with:
name: liberty-tools-vscode-${{ github.sha }}
path: ./**/*.vsix
if-no-files-found: warn
retention-days: 7