Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Nov 22, 2024
1 parent 5bed9df commit 28af539
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/vcstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ on:
workflow_dispatch:
inputs:
publish_vsx:
description: 'Upload to the main store'
description: 'Upload to the main store (even if not a tag)'
required: true
default: false
publish_open_vsx:
description: 'Upload to the open vsx store'
description: 'Upload to the open vsx store (even if not a tag)'
required: true
default: false

Expand All @@ -33,14 +33,16 @@ jobs:
- run: npm run build
- run: vsce package

- name: Publish
if: success() && (startsWith(github.ref, 'refs/tags/') || ${{ github.event.inputs.publish_vsx }})
run: npm run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

- name: Publish to Open VSX Registry
if: success() && (startsWith(github.ref, 'refs/tags/') || ${{ github.event.inputs.publish_open_vsx }})
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}

- name: Publish to the main store
if: success() && (startsWith(github.ref, 'refs/tags/') || ${{ github.event.inputs.publish_vsx }})
run: npm run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}


0 comments on commit 28af539

Please sign in to comment.