File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ tags :
4+ - " *"
5+
6+ name : Deploy and Release Extension
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+ permissions :
11+ contents : write
12+ steps :
13+ - uses : actions/checkout@v4
14+ - uses : actions/setup-node@v4
15+ with :
16+ node-version : 20
17+
18+ - run : npm ci
19+
20+ - name : Package Extension
21+ run : npx vsce package
22+
23+ - name : Get tag name
24+ id : get_tag
25+ run : echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
26+
27+ - name : Upload .vsix to GitHub Release
28+ uses : softprops/action-gh-release@v2
29+ with :
30+ files : " *.vsix"
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+
34+ - name : Publish to Visual Studio Marketplace
35+ uses : HaaLeo/publish-vscode-extension@v2
36+ with :
37+ pat : ${{ secrets.VS_MARKETPLACE_TOKEN }}
38+ registryUrl : https://marketplace.visualstudio.com
You can’t perform that action at this time.
0 commit comments