Skip to content

Commit

Permalink
Add OpenVSX release in workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Guidée <[email protected]>
  • Loading branch information
quentinguidee committed Jun 1, 2022
1 parent 5e979b9 commit 284008c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,39 @@ jobs:
for file in releases/*; do
vsce publish -p ${{ secrets.VSCODE_MARKETPLACE }} --packagePath $file --githubBranch main
done
release-open-vsx:
name: Release (Open VSX)
needs: package
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: artifacts

- name: Copy artifacts
run: |
mkdir releases
for file in artifacts/*/*; do
file=${file#artifacts/}
folder=${file%%/*}
cp -v artifacts/$file releases/$folder
done
- uses: actions/setup-node@v3
with:
node-version: 16

- name: Install dependencies
run: yarn global add ovsx

- name: Release
run: |
for file in releases/*; do
npx ovsx publish -p ${{ secrets.VSIX_MARKETPLACE }} --packagePath $file
done

0 comments on commit 284008c

Please sign in to comment.