Skip to content

Commit

Permalink
feat: add OpenVSX and VS Code Marketplace CI, fixes #111
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h committed Sep 9, 2023
1 parent f566002 commit 824166a
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
steps:
- uses: actions/download-artifact@v3
with:
name: vscode-github-actions-${{ needs.release.outputs.version }}.vsix
name: templ-${{ needs.release.outputs.version }}.vsix

- name: Publish to marketplace
# https://github.com/HaaLeo/publish-vscode-extension/releases/tag/v1.4.0
Expand All @@ -141,19 +141,19 @@ jobs:
registryUrl: https://marketplace.visualstudio.com
extensionFile: ./templ-${{ needs.release.outputs.version }}.vsix

#open-vsx-publish:
#name: Publish to Open VSX Registry
#needs: release
#environment: publish-open-vsx
#runs-on: ubuntu-latest
#env:
#OPEN_VSX_TOKEN: ${{ secrets.OPEN_VSX_TOKEN }}
#steps:
#- name: Download artifact
#uses: actions/download-artifact@v3
#with:
#name: vscode-github-actions-${{ needs.release.outputs.version }}.vsix

#- name: Publish to Registry
#run: |
#npx ovsx publish -p $OPEN_VSX_TOKEN *.vsix
open-vsx-publish:
name: Publish to Open VSX Registry
needs: release
environment: publish-open-vsx
runs-on: ubuntu-latest
env:
OPEN_VSX_TOKEN: ${{ secrets.OPEN_VSX_TOKEN }}
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: templ-${{ needs.release.outputs.version }}.vsix

- name: Publish to Registry
run: |
npx ovsx publish -p $OPEN_VSX_TOKEN *.vsix

0 comments on commit 824166a

Please sign in to comment.