Skip to content

Commit b3ab6c6

Browse files
committed
ci: deploy extension to vsx
1 parent 83e2465 commit b3ab6c6

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,3 +231,19 @@ jobs:
231231
- run: vsce publish --packagePath extension.vsix
232232
env:
233233
VSCE_PAT: ${{ secrets.VSCE_PAT }} # Set up the VSCE Personal Access Token in GitHub secrets
234+
publish-to-openvsx:
235+
name: Publish VSIX to Open VSX
236+
runs-on: ubuntu-latest
237+
needs:
238+
- release-vsix
239+
- convert_release_to_not_draft
240+
steps:
241+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4
242+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # ratchet:actions/setup-node@v4
243+
with:
244+
node-version-file: ".nvmrc"
245+
cache: "pnpm"
246+
- run: npm install -g ovsx
247+
- run: chmod +x .hacking/scripts/download_extension.sh
248+
- run: ./.hacking/scripts/download_extension.sh
249+
- run: ovsx publish extension.vsix -p ${{ secrets.OPEN_VSX_TOKEN }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ratchet_update: ## Updates all the Github workflow versions
5656

5757
.PHONY: ratchet_check
5858
ratchet_check: ## Checks all the Github workflow versions
59-
ratchet check .github/workflows/*
59+
ratchet lint .github/workflows/*
6060

6161
.PHONY: load_vscode_settings
6262
load_vscode_settings: ## Loads the sample vscode settings

0 commit comments

Comments
 (0)