Skip to content

Commit 63c9ea3

Browse files
committed
Fix releas VSIX
Signed-off-by: Anatolii Bazko <[email protected]>
1 parent babbe80 commit 63c9ea3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Diff for: .github/workflows/release.yaml

+9-2
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,18 @@ jobs:
7272
npm install -g typescript "@vscode/vsce" "ovsx"
7373
- name: Download VSIX
7474
uses: actions/[email protected]
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
7582
- name: Publish to VS Code Marketplace
7683
if: ${{ inputs.publishToMarketPlace == 'true' }}
7784
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
7986
- name: Publish to OpenVSX Registry
8087
if: ${{ inputs.publishToOVSX == 'true' == 'true' }}
8188
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

0 commit comments

Comments
 (0)