-
Notifications
You must be signed in to change notification settings - Fork 609
104 lines (91 loc) · 3.58 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
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: Retrieve version
id: retrieve_version
run: |
python3 bumpVersion.py
echo "VERSION=$(cat VERSION)" >> $GITHUB_OUTPUT
working-directory: ./integration/schema-language-server/clients/intellij
# - name: Publish IntelliJ plugin
# run: |
# gradle buildPlugin
# curl -i --header "Authorization: Bearer $INTELLIJ_PLUGIN_PERM" -F pluginId=$PLUGIN_ID -F file=@./build/distributions/vespa-$VERSION.zip https://plugins.jetbrains.com/plugin/uploadPlugin
# working-directory: ./integration/schema-language-server/clients/intellij
# env:
# VERSION: ${{ steps.retrieve_version.outputs.VERSION }}
# INTELLIJ_PLUGIN_PERM: ${{ secrets.INTELLIJ_PLUGIN_PERM }}
# PLUGIN_ID: 18074
- name: Create Draft Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.retrieve_version.outputs.VERSION }}
release_name: Vespa Langauge Server ${{ steps.retrieve_version.outputs.VERSION }}
draft: true
prerelease: false
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./integration/schema-language-server/langauge-server/target/schema-language-server-jar-with-dependencies.jar
asset_name: vespa-langauge-server_${{ steps.retrieve_version.outputs.VERSION }}.jar
asset_content_type: application/java-archive
# - uses: eregon/publish-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# release_id: ${{ steps.create_release.outputs.id }}
# 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"