-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (36 loc) · 869 Bytes
/
release.yml
File metadata and controls
39 lines (36 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Create Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install
run: npm install
- name: Package
run: npm run package-vsix
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: '*.vsix'
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install
run: npm install
- name: Publish to VS Code Marketplace
run: npm run deploy:vsce
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- name: Publish to Open VSX Registry
run: npm run deploy:ovsx
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}