Skip to content

Commit 77ddd59

Browse files
committed
Publish on release created
1 parent 05dd578 commit 77ddd59

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/build.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
on:
2-
push:
3-
tags:
4-
- '*'
2+
release:
3+
types: [created]
54

65
name: Deploy Extension
76
jobs:
@@ -14,12 +13,23 @@ jobs:
1413
node-version: 12
1514
- run: npm ci
1615
- name: Publish to Visual Studio Marketplace
16+
id: publishToVSMarketplace
1717
uses: HaaLeo/publish-vscode-extension@v0
1818
with:
1919
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
2020
registryUrl: https://marketplace.visualstudio.com
2121
- name: Publish to Open VSX Registry
22+
id: publishToOpenVSX
2223
continue-on-error: true
2324
uses: HaaLeo/publish-vscode-extension@v0
2425
with:
2526
pat: ${{ secrets.OPEN_VSX_TOKEN }}
27+
- name: Upload extension vsix
28+
uses: actions/[email protected]
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

0 commit comments

Comments
 (0)