Skip to content

Commit 4ea2805

Browse files
⚙️ Add metadata and CI step for OpenVSX publishing (#84)
1 parent 90b4a44 commit 4ea2805

1 file changed

Lines changed: 27 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,37 @@ on:
55
types: [published]
66

77
jobs:
8-
publish:
8+
build:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1212
- uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2
1313
- run: bun install
1414
- run: bun run package
15+
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #v7.0.0
16+
with:
17+
name: vsix
18+
path: ./*.vsix
19+
20+
publish-marketplace:
21+
needs: build
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 #v8.0.0
25+
with:
26+
name: vsix
27+
path: dist
1528
- name: Publish to VS Code Marketplace
16-
run: bun run publish:marketplace
17-
env:
18-
VSCE_PAT: ${{ secrets.VSCE_PAT }}
29+
run: npx vsce publish --pat ${{ secrets.VSCE_PAT }} --packagePath ./dist/*.vsix
30+
31+
publish-openvsx:
32+
needs: build
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 #v8.0.0
36+
with:
37+
name: vsix
38+
path: dist
39+
- name: Publish to Open VSX
40+
run: npx ovsx publish --pat ${{ secrets.OVSX_PAT }} --packagePath ./dist/*.vsix
41+
timeout-minutes: 2

0 commit comments

Comments
 (0)