-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create separate open-vsx publishing action (#1491)
## Changes Create separate open-vsx publishing action ## Tests
- Loading branch information
Showing
2 changed files
with
57 additions
and
11 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
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: | ||
runs-on: ubuntu-latest | ||
environment: Production | ||
|
||
steps: | ||
- name: Use Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.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 | ||
|
||
- name: Install ovsx | ||
run: npm install -g ovsx | ||
|
||
- name: Publish to Open VSX | ||
run: | | ||
ovsx verify-pat databricks | ||
ovsx publish --packagePath databricks-*.vsix | ||
env: | ||
OVSX_PAT: ${{ secrets.OVSX_PAT }} |
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