Skip to content

Commit 60324fe

Browse files
committed
Added deploy
1 parent 46f181e commit 60324fe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ on:
22
push:
33
branches:
44
- master
5+
release:
6+
types:
7+
- created
58

69
jobs:
710
build:
@@ -21,3 +24,8 @@ jobs:
2124
if: runner.os == 'Linux'
2225
- run: npm test
2326
if: runner.os != 'Linux'
27+
- name: Publish
28+
if: success() && startsWith(github.ref, 'refs/tags/releases/') && matrix.os == 'ubuntu-latest'
29+
run: npm run deploy
30+
env:
31+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)