Skip to content

Commit

Permalink
Setup action to publish releases
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Jan 21, 2025
1 parent 1f839e4 commit d28b6ea
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: publish

'on':
push:
tags:
- '*'

permissions:
contents: read

name: Deploy Extension
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: production

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.14'

- run: npm run build

- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com

- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}

0 comments on commit d28b6ea

Please sign in to comment.