File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
- push :
3
- tags :
4
- - ' *'
2
+ release :
3
+ types : [created]
5
4
6
5
name : Deploy Extension
7
6
jobs :
@@ -14,12 +13,23 @@ jobs:
14
13
node-version : 12
15
14
- run : npm ci
16
15
- name : Publish to Visual Studio Marketplace
16
+ id : publishToVSMarketplace
17
17
uses : HaaLeo/publish-vscode-extension@v0
18
18
with :
19
19
pat : ${{ secrets.VS_MARKETPLACE_TOKEN }}
20
20
registryUrl : https://marketplace.visualstudio.com
21
21
- name : Publish to Open VSX Registry
22
+ id : publishToOpenVSX
22
23
continue-on-error : true
23
24
uses : HaaLeo/publish-vscode-extension@v0
24
25
with :
25
26
pat : ${{ secrets.OPEN_VSX_TOKEN }}
27
+ - name : Upload extension vsix
28
+
29
+ env :
30
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
+ with :
32
+ upload_url : ${{ github.event.release.upload_url }}
33
+ asset_path : ${{ steps.publishToVSMarketplace.outputs.vsixPath }}
34
+ asset_name : haskell-${{ github.event.release.tag_name }}.vsix
35
+ asset_content_type : application/vsix
You can’t perform that action at this time.
0 commit comments