Skip to content

Commit

Permalink
ci: add automatic push to vscode marketplace
Browse files Browse the repository at this point in the history
  • Loading branch information
benfdking committed Sep 18, 2024
1 parent 5bf01d7 commit 7928e00
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,25 @@ jobs:
with:
command: publish
args: --token ${{ secrets.CARGO_API_TOKEN }} -p sqruff
publish-to-marketplace:
name: Publish VSIX to VSCode Marketplace
runs-on: ubuntu-latest
needs:
- release-vsix
- convert_release_to_not_draft
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Install vsce
run: npm install -g vsce
- name: Download VSIX file
run: |
curl -L -o extension.vsix https://github.com/${{ github.repository }}/releases/download/${{ github.event.release.tag_name }}/editors/code/sqruff-${{ github.event.release.tag_name }}.vsix
- name: Publish to VSCode Marketplace
run: vsce publish --packagePath extension.vsix
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }} # Set up the VSCE Personal Access Token in GitHub secrets

0 comments on commit 7928e00

Please sign in to comment.