Skip to content

Commit b3bfc3c

Browse files
committed
chore: Update GitHub Actions workflow to create releases
1 parent 2e3ab86 commit b3bfc3c

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build VSCode SysMon
1+
name: Build and Deploy
22
on:
33
- push
44
concurrency:
@@ -77,6 +77,21 @@ jobs:
7777
npm run vscode:prepublish
7878
npm run package
7979
80+
# Publish to Visual Studio Marketplace
81+
- name: Publish to Visual Studio Marketplace
82+
uses: HaaLeo/publish-vscode-extension@v1
83+
id: publishToMarketplace
84+
with:
85+
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
86+
registryUrl: https://marketplace.visualstudio.com
87+
88+
# Publish to Open VSX Registry
89+
- name: Publish to Open VSX Registry
90+
uses: HaaLeo/publish-vscode-extension@v1
91+
with:
92+
extensionFile: ${{ steps.publishToMarketplace.outputs.vsixPath }}
93+
pat: ${{ secrets.OPEN_VSX_TOKEN }}
94+
8095
# Push Tag
8196
- name: Push Tag
8297
if: |
@@ -95,5 +110,5 @@ jobs:
95110
tag=$(git describe --tags --abbrev=0)
96111
gh release create "$tag" \
97112
--repo="$GITHUB_REPOSITORY" \
98-
--title="${tag#v}" \
113+
--title="v${tag#v}" \
99114
--generate-notes

0 commit comments

Comments
 (0)