Skip to content

Publish Extension

Publish Extension #12

Workflow file for this run

name: Deploy Extension
on:
workflow_dispatch:
inputs:
version:
description: 'Release version (should match package.json)'
required: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: npm clean install
run: npm ci
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
architecture: x64
cache: gradle
- name: checkout language server
run: |
git clone -b ${{ github.event.inputs.version }} https://github.com/nextflow-io/language-server
- name: build vscode extension
run: ./gradlew build
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
extensionFile: build/nextflow.vsix
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VSCE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: build/nextflow.vsix