File tree Expand file tree Collapse file tree 2 files changed +55
-5
lines changed Expand file tree Collapse file tree 2 files changed +55
-5
lines changed Original file line number Diff line number Diff line change 4141 vsix_arch : win32-x64,
4242 os : windows-latest,
4343 },
44- {
45- bricks_arch : windows_386,
46- vsix_arch : win32-ia32,
47- os : windows-latest,
48- },
4944 ]
5045 node-version : [16.x]
5146
Original file line number Diff line number Diff line change 1+ name : Publish to VS Code Marketplace
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : " Release tag"
8+ required : true
9+ type : string
10+
11+ release :
12+ types : [published]
13+
14+ jobs :
15+ publish-to-vscode :
16+ runs-on : ubuntu-latest
17+ environment : Production
18+
19+ steps :
20+ - name : Use Node.js 16.x
21+ uses : actions/setup-node@v3
22+ with :
23+ node-version : 16.x
24+
25+ - name : download release
26+ run : |
27+ set x
28+ echo Version: ${{ github.event.inputs.version }}
29+ echo REF: ${{ github.ref }}
30+ TAG=${{ github.event.inputs.version }}
31+ if [[ ! -z "${{ github.event.inputs.version }}" ]]; then
32+ TAG=${{ github.event.inputs.version }}
33+ elif [[ "${{ github.ref }}" == refs/tags/* ]]; then
34+ TAG=$(echo ${{ github.ref }} | sed -e "s|^refs/tags/||")
35+ else
36+ exit 1
37+ fi
38+ echo Tag: $TAG
39+ gh release download $TAG -R databricks/databricks-vscode
40+ ls -lR
41+ cho "TAG=$TAG" >> $GITHUB_ENV
42+ env :
43+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+
45+ - name : Install vcse
46+ run : npm install -g @vscode/vsce
47+
48+ - name : Publish to VS Code Marketplace
49+ run : |
50+ vsce -V
51+ BASE_URL="https://github.com/databricks/databricks-vscode/raw/$TAG/packages/databricks-vscode"
52+ vsce publish -p ${{ secrets.VSCE_TOKEN }} --packagePath databricks-*.vsix --baseContentUrl $BASE_URL --baseImagesUrl $BASE_URL
53+
54+ env :
55+ VSCE_TOKEN : ${{ secrets.VSCE_TOKEN }}
You can’t perform that action at this time.
0 commit comments