Skip to content

Commit

Permalink
Add OpenVSX publishing (#1064)
Browse files Browse the repository at this point in the history
* Add OpenVSX publishing

* Seperate into 2 different jobs

* Don't use `--no-git-tag-version`

Co-authored-by: Radek Simko <radek.simko@gmail.com>

Co-authored-by: Radek Simko <radek.simko@gmail.com>
  • Loading branch information
filiptronicek and radeksimko authored Nov 24, 2022
1 parent cffb9b0 commit c12c96f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ jobs:
name: ${{ matrix.vsce_target }}
path: "*.vsix"

publish:
name: Publish All
publish-vsce:
name: Publish All (Microsoft Marketplace)
runs-on: ubuntu-latest
needs: build
if: success() && startsWith( github.ref, 'refs/tags/v')
Expand All @@ -84,3 +84,15 @@ jobs:
run: npx vsce publish --no-git-tag-version --packagePath $(find . -iname *.vsix)
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

publish-ovsx:
name: Publish All (OpenVSX)
runs-on: ubuntu-latest
needs: build
if: success() && startsWith( github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v3
- name: Publish Extension
run: npx ovsx publish --packagePath $(find . -iname *.vsix)
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}

0 comments on commit c12c96f

Please sign in to comment.