Skip to content

Commit a96d554

Browse files
committed
ci(release): update OpenVSX publishing workflow
1 parent c1d3182 commit a96d554

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,18 @@ jobs:
7979
VSCE_PAT: ${{ secrets.VSCE_PAT }}
8080
run: vsce publish -p $VSCE_PAT --packagePath diffy-explain-ai-${{ needs.release-please.outputs.version }}.vsix
8181

82+
- name: Install ovsx CLI
83+
run: npm install -g ovsx
84+
85+
- name: Create OpenVSX namespace (if not exists)
86+
env:
87+
OPENVSX_PAT: ${{ secrets.OPENVSX_PAT }}
88+
run: ovsx create-namespace hitclaw -p $OPENVSX_PAT || echo "Namespace already exists or creation failed"
89+
8290
- name: Publish to OpenVSX
8391
env:
8492
OPENVSX_PAT: ${{ secrets.OPENVSX_PAT }}
85-
run: vsce publish -p $OPENVSX_PAT --openvsx --packagePath diffy-explain-ai-${{ needs.release-please.outputs.version }}.vsix
93+
run: ovsx publish diffy-explain-ai-${{ needs.release-please.outputs.version }}.vsix -p $OPENVSX_PAT
8694

8795
- name: Create GitHub Release
8896
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)