forked from georgewfraser/java-language-server
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 985 Bytes
/
release.yml
File metadata and controls
39 lines (37 loc) · 985 Bytes
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
name: Release
on:
push:
tags:
- release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Download JDKs
run: |
./scripts/download_linux_jdk.sh
./scripts/download_windows_jdk.sh
./scripts/download_mac_jdk.sh
./scripts/link_linux.sh
./scripts/link_windows.sh
./scripts/link_mac.sh
- name: Fetch node dependencies
run: npm install
- name: Build Java
run: mvn --batch-mode package
- name: Build extension
run: npm run-script vscode:build
- name: Publish extension in VSCode marketplace
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath build.vsix