File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,18 @@ jobs:
72
72
npm install -g typescript "@vscode/vsce" "ovsx"
73
73
- name : Download VSIX
74
74
75
+ with :
76
+ merge-multiple : true
77
+ path : .
78
+ - name : List downloaded files
79
+ run : ls -ll *.vsix
80
+ - name : Set EXT_VERSION variable
81
+ run : echo "EXT_VERSION=$(cat package.json | jq -r .version)" >> $GITHUB_ENV
75
82
- name : Publish to VS Code Marketplace
76
83
if : ${{ inputs.publishToMarketPlace == 'true' }}
77
84
run : |
78
- vsce publish -p ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} --packagePath vscode-walkthrough-extension/vscode- devfile-* -${GITHUB_RUN_NUMBER}.vsix
85
+ vsce publish -p ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} --packagePath vscode-devfile-${{ env.EXT_VERSION }} -${GITHUB_RUN_NUMBER}.vsix
79
86
- name : Publish to OpenVSX Registry
80
87
if : ${{ inputs.publishToOVSX == 'true' == 'true' }}
81
88
run : |
82
- ovsx publish -p ${{ secrets.OVSX_MARKETPLACE_TOKEN }} --packagePath vscode-walkthrough-extension/vscode- devfile-* -${GITHUB_RUN_NUMBER}.vsix
89
+ ovsx publish -p ${{ secrets.OVSX_MARKETPLACE_TOKEN }} --packagePath vscode-devfile-${{ env.EXT_VERSION }} -${GITHUB_RUN_NUMBER}.vsix
You can’t perform that action at this time.
0 commit comments