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 68
68
if : runner.os == 'Linux'
69
69
with :
70
70
name : vsix
71
- path : ./dist/
71
+ path : ./dist/${{ steps.set-version.outputs.name }}.vsix
72
72
beta :
73
73
if : (github.event_name == 'push')
74
74
runs-on : ubuntu-latest
@@ -142,6 +142,7 @@ jobs:
142
142
jq '.enableProposedApi = false' package.json > "$tmp" && mv "$tmp" package.json
143
143
npm install
144
144
git push
145
+ echo ::set-output name=ovsx::`cat ./dist/.name`
145
146
- name : Upload Release Asset
146
147
id : upload-release-asset
147
148
uses : actions/upload-release-asset@v1
@@ -153,8 +154,10 @@ jobs:
153
154
asset_path : ./dist/${{ steps.set-version.outputs.name }}.vsix
154
155
asset_name : ${{ steps.set-version.outputs.name }}.vsix
155
156
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
157
161
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
160
163
You can’t perform that action at this time.
0 commit comments