Vespa Schema LSP - Deploy extension #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |