Skip to content

Commit

Permalink
chore: Update GitHub Actions workflow to create releases
Browse files Browse the repository at this point in the history
  • Loading branch information
amengus87 committed Aug 28, 2024
1 parent 2e3ab86 commit b3bfc3c
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/build.yml → .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build VSCode SysMon
name: Build and Deploy
on:
- push
concurrency:
Expand Down Expand Up @@ -77,6 +77,21 @@ jobs:
npm run vscode:prepublish
npm run package
# Publish to Visual Studio Marketplace
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
id: publishToMarketplace
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com

# Publish to Open VSX Registry
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
with:
extensionFile: ${{ steps.publishToMarketplace.outputs.vsixPath }}
pat: ${{ secrets.OPEN_VSX_TOKEN }}

# Push Tag
- name: Push Tag
if: |
Expand All @@ -95,5 +110,5 @@ jobs:
tag=$(git describe --tags --abbrev=0)
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${tag#v}" \
--title="v${tag#v}" \
--generate-notes

0 comments on commit b3bfc3c

Please sign in to comment.