-
Notifications
You must be signed in to change notification settings - Fork 603
71 lines (62 loc) · 2.23 KB
/
lspDeploy.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Vespa Schema LSP - Deploy extension
on:
workflow_dispatch:
inputs:
version:
type: choice
description: Which kind of release is this
required: true
options:
- major
- minor
- patch
jobs:
lspDeploy:
name: Vespa Schema LSP Deployment Job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
cache: maven
- name: Build Vespa
run: |
export MAVEN_OPTS="-Xms128m -Xmx1024m"
./bootstrap.sh java
mvn install --threads 1C
working-directory: ./
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Download node dependencies
run: npm ci
working-directory: ./integration/schema-language-server/clients/vscode
- name: Publish VScode extension
run: npm run publish
working-directory: ./integration/schema-language-server/clients/vscode
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
VERSION_TYPE: ${{ github.event.inputs.version }}
- name: Publish IntelliJ plugin
run: |
python3 bumpVersion.py
gradle buildPlugin
curl -i --header "Authorization: Bearer $INTELLIJ_PLUGIN_PERM" -F pluginId=$PLUGIN_ID -F file=@./build/distributions/vespa-$(cat VERSION).zip https://plugins.jetbrains.com/plugin/uploadPlugin
working-directory: ./integration/schema-language-server/clients/intellij
env:
INTELLIJ_PLUGIN_PERM: ${{ secrets.INTELLIJ_PLUGIN_PERM }}
PLUGIN_ID: 18074
# Disabling as it is disallowed by org for now
# - name: Create PR to bump version
# uses: peter-evans/create-pull-request@v6
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# commit-message: "Update Vespa Language Server VSCode extension version"
# title: "Bump Vespa Language Server version"
# body: "This PR updates the Vespa Language Server VSCode extension"
# branch: "interns/languageserver-bump-version"
# base: "master"
# labels: "Language server"