Skip to content

Commit ffb25a1

Browse files
authored
Merge pull request #236 from github/felipsu19/openvsk
Update publish.yml to publish to OpenVSX
2 parents f99e8cd + 34cf557 commit ffb25a1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,20 @@ jobs:
147147
pat: ${{ secrets.PUBLISHER_KEY }}
148148
registryUrl: https://marketplace.visualstudio.com
149149
extensionFile: ./vscode-github-actions-${{ needs.release.outputs.version }}.vsix
150+
151+
open-vsx-publish:
152+
name: Publish to Open VSX Registry
153+
needs: release
154+
environment: publish-open-vsx
155+
runs-on: ubuntu-latest
156+
env:
157+
OPEN_VSX_TOKEN: ${{ secrets.OPEN_VSX_TOKEN }}
158+
steps:
159+
- name: Download artifact
160+
uses: actions/download-artifact@v3
161+
with:
162+
name: vscode-github-actions-${{ needs.release.outputs.version }}.vsix
163+
164+
- name: Publish to Registry
165+
run: |
166+
npx ovsx publish -p $OPEN_VSX_TOKEN *.vsix

0 commit comments

Comments
 (0)