File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 6868 if : runner.os == 'Linux'
6969 with :
7070 name : vsix
71- path : ./dist/
71+ path : ./dist/${{ steps.set-version.outputs.name }}.vsix
7272 beta :
7373 if : (github.event_name == 'push')
7474 runs-on : ubuntu-latest
@@ -142,6 +142,7 @@ jobs:
142142 jq '.enableProposedApi = false' package.json > "$tmp" && mv "$tmp" package.json
143143 npm install
144144 git push
145+ echo ::set-output name=ovsx::`cat ./dist/.name`
145146 - name : Upload Release Asset
146147 id : upload-release-asset
147148 uses : actions/upload-release-asset@v1
@@ -153,8 +154,10 @@ jobs:
153154 asset_path : ./dist/${{ steps.set-version.outputs.name }}.vsix
154155 asset_name : ${{ steps.set-version.outputs.name }}.vsix
155156 asset_content_type : application/zip
156- - name : Publish to Marketplaces
157+ - name : Publish to VSCode Marketplace
158+ run : |
159+ [ -n "${{ secrets.VSCE_TOKEN }}" ] && ./node_modules/.bin/vsce publish -p ${{ secrets.VSCE_TOKEN }} || true
160+ - name : Publish to Open VSX Registry
157161 run : |
158- ./node_modules/.bin/vsce publish -p ${{ secrets.VSCE_TOKEN }}
159- ./node_modules/.bin/ovsx publish --pat ${{ secrets.OVSX_TOKEN }}
162+ [ -n "${{ secrets.OVSX_TOKEN }}" ] && ./node_modules/.bin/ovsx publish --pat ${{ secrets.OVSX_TOKEN }} || true
160163
You can’t perform that action at this time.
0 commit comments