Skip to content

Commit

Permalink
Added support to deploy it to Visual Studio Marketplace
Browse files Browse the repository at this point in the history
  • Loading branch information
Bioblaze committed Dec 19, 2024
1 parent f6f09c0 commit 812b199
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ on:
- main
- master
workflow_dispatch:

env:
PUBLISHER_NAME: blazium-engine
VSCE_PAT: ${{ env.VS_MARKETPLACE_PAT }}
jobs:
get-latest-sha:
name: 🔍 Get Latest SHA & Base Version
Expand Down Expand Up @@ -141,6 +143,15 @@ jobs:
contents: write # Grants write permissions for content operations

steps:

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install vsce
run: npm install -g @vscode/vsce

- name: Download artifact
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -168,4 +179,10 @@ jobs:
asset_name: blazium-anko-extension-${{ needs.build.outputs.version }}.vsix
asset_content_type: application/octet-stream

- name: Deploy to Visual Studio Marketplace
run: |
vsce verify-pat ${{ env.PUBLISHER_NAME }}
vsce login ${{ env.PUBLISHER_NAME }}
vsce publish --packagePath ${{ github.workspace }}\dist\blazium-anko-extension-${{ needs.get-latest-sha.outputs.version_string }}.vsix

0 comments on commit 812b199

Please sign in to comment.