Skip to content

Commit

Permalink
Merge pull request #32 from MrOrz/separate-deploy
Browse files Browse the repository at this point in the history
Separate vsix build and deploy steps
  • Loading branch information
MrOrz authored Jan 28, 2024
2 parents 28d15ba + d0c7be5 commit b34f733
Showing 1 changed file with 34 additions and 7 deletions.
41 changes: 34 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,49 @@ on:
workflow_dispatch:

jobs:
deploy:
build:
runs-on: ubuntu-latest
outputs:
vsixPath: ${{ steps.buildVsx.outputs.vsixPath }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
- run: npm ci
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
id: publishToOpenVSX
- uses: HaaLeo/publish-vscode-extension@v1
id: buildVsx
with:
pat: stub
dryRun: true
- uses: actions/upload-artifact@v2
with:
name: vsix
path: ${{ steps.buildVsx.outputs.vsixPath }}

publish-to-open-vsx:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download vsix
uses: actions/download-artifact@v2
with:
name: vsix
- uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
extensionFile: ${{ needs.build.outputs.vsixPath }}

publish-to-vs-marketplace:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download vsix
uses: actions/download-artifact@v2
with:
name: vsix
- uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
extensionFile: ${{ needs.build.outputs.vsixPath }}

0 comments on commit b34f733

Please sign in to comment.