Skip to content

Commit

Permalink
Add publishing to OVSX
Browse files Browse the repository at this point in the history
  • Loading branch information
will-v-pi committed Aug 23, 2024
1 parent 29bd64a commit afbf40a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
cache: 'yarn'
- name: Install Dependencies
run: |
npm i -g @vscode/vsce
npm i -g @vscode/vsce ovsx
yarn
- name: Package Extension
run: |
Expand All @@ -35,6 +35,10 @@ jobs:
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_PAT }}
run: |
vsce verify-pat raspberry-pi
- name: Test OVSX PAT
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
run: |
npx ovsx verify-pat -p ${{ secrets.OPEN_VSX_PAT }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -51,3 +55,7 @@ jobs:
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_PAT }}
run: |
vsce publish -i raspberry-pi-pico-*.vsix
- name: Publish Extension to OVSX
if: startsWith(github.ref, 'refs/tags/')
run: |
npx ovsx publish raspberry-pi-pico-*.vsix -p ${{ secrets.OPEN_VSX_PAT }}

0 comments on commit afbf40a

Please sign in to comment.