-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 998 Bytes
/
Copy pathdeploy.yml
File metadata and controls
40 lines (39 loc) · 998 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
40
name: Deploy Extension
on:
push:
tags:
- v*
jobs:
upload-artifact:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install vsce
run: npm install -g vsce
- name: Install dependencies
run: npm ci
- name: Run build
run: vsce package
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: extension
path: "*.vsix"
publish:
needs: upload-artifact
runs-on: ubuntu-latest
if: success() && startsWith(github.ref, 'refs/tags/v')
steps:
- name: Download artifact
uses: actions/download-artifact@v3
- name: Install vsce
run: npm install -g vsce
- name: Publish
run: vsce publish --packagePath $(find . -iname *.vsix)
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}