diff --git a/.github/workflows/publish-extension.yml b/.github/workflows/publish-extension.yml index 8ae928f..5528d83 100644 --- a/.github/workflows/publish-extension.yml +++ b/.github/workflows/publish-extension.yml @@ -12,13 +12,13 @@ jobs: steps: - name: Download release artifact run: "curl -L -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' -H 'Accept: application/octet-stream' ${{ github.event.release.assets[0].url }} --output extension.vsix" - # - name: Validate extension file - # run: unzip -f extension.vsix extension/package.json - # - name: Publish to Open VSX Registry - # uses: HaaLeo/publish-vscode-extension@v1 - # with: - # pat: ${{ secrets.OPEN_VSX_TOKEN }} - # extensionFile: extension.vsix + - name: Validate extension file + run: unzip -f extension.vsix extension/package.json + - name: Publish to Open VSX Registry + uses: HaaLeo/publish-vscode-extension@v1 + with: + pat: ${{ secrets.OPEN_VSX_TOKEN }} + extensionFile: extension.vsix vs: name: "Visual Studio Marketplace" if: endsWith(github.event.release.assets[0].name, '.vsix') @@ -26,11 +26,11 @@ jobs: steps: - name: Download release artifact run: "curl -L -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' -H 'Accept: application/octet-stream' ${{ github.event.release.assets[0].url }} --output extension.vsix" - # - name: Validate extension file - # run: unzip -f extension.vsix extension/package.json - # - name: Publish to Visual Studio Marketplace - # uses: HaaLeo/publish-vscode-extension@v1 - # with: - # pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} - # registryUrl: https://marketplace.visualstudio.com - # extensionFile: extension.vsix + - name: Validate extension file + run: unzip -f extension.vsix extension/package.json + - name: Publish to Visual Studio Marketplace + uses: HaaLeo/publish-vscode-extension@v1 + with: + pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} + registryUrl: https://marketplace.visualstudio.com + extensionFile: extension.vsix