Skip to content

Release: v2.11.0 (#1902) #21

Release: v2.11.0 (#1902)

Release: v2.11.0 (#1902) #21

name: Publish to Open VSX Marketplace
on:
workflow_dispatch:
inputs:
version:
description: "Release tag"
required: true
type: string
release:
types: [published]
jobs:
publish-to-openvsx:
if: false # Temporarily disabled — pending secure release repo migration
runs-on:
group: databricks-protected-runner-group
labels: linux-ubuntu-latest
environment: Production
steps:
- name: Use Node.js 22.x
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22.x
- name: Download release
run: |
set x
echo Version: ${{ github.event.inputs.version }}
echo REF: ${{ github.ref }}
TAG=${{ github.event.inputs.version }}
if [[ ! -z "${{ github.event.inputs.version }}" ]]; then
TAG=${{ github.event.inputs.version }}
elif [[ "${{ github.ref }}" == refs/tags/* ]]; then
TAG=$(echo ${{ github.ref }} | sed -e "s|^refs/tags/||")
else
exit 1
fi
echo Tag: $TAG
gh release download $TAG -R databricks/databricks-vscode
ls -lR
echo "TAG=$TAG" >> $GITHUB_ENV
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install vcse
run: npm install -g @vscode/vsce@3.7.1
- name: Install ovsx
run: npm install -g ovsx@0.10.10
- name: Publish to Open VSX
run: |
ovsx verify-pat databricks
ovsx publish --packagePath databricks-*.vsix
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}