From 28af5393eae4eff24b9556934fff4245c411c9a8 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Fri, 22 Nov 2024 10:08:08 +0100 Subject: [PATCH] update ci --- .github/workflows/vcstore.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/vcstore.yaml b/.github/workflows/vcstore.yaml index 8b8bfb7..816d1e5 100644 --- a/.github/workflows/vcstore.yaml +++ b/.github/workflows/vcstore.yaml @@ -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 @@ -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 }} + + \ No newline at end of file