Skip to content

Commit

Permalink
Add publish yml for all targets
Browse files Browse the repository at this point in the history
  • Loading branch information
njqdev committed Sep 5, 2023
1 parent ebc0956 commit cef34d5
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: Release
name: Deploy
on:
release:
types:
- published
workflow_dispatch:
inputs:
publishMS:
description: "Publish to the Microsoft Marketplace"
type: boolean
required: true
default: true
publishOVSX:
description: "Publish to Open VSX"
type: boolean
Expand Down Expand Up @@ -56,7 +61,20 @@ jobs:
Write-Host "::set-output name=tag::release/$version"
Write-Host "::set-output name=version::$version"
shell: pwsh


publishMS:
name: Publish to VS marketplace
runs-on: ubuntu-latest
needs: package
if: github.event.inputs.publishMS == 'true'
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: ${{ needs.package.outputs.packageName }}
- name: Publish to VS marketplace
run: npx vsce publish --packagePath ./${{ needs.package.outputs.packageName }} -p ${{ secrets.VSCE_PAT }}

publishOVSX:
name: Publish to Open VSX
runs-on: ubuntu-latest
Expand Down

0 comments on commit cef34d5

Please sign in to comment.