File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 44# docs: https://code.visualstudio.com/api/working-with-extensions/publishing-extension
55# run: sh scripts/publish.sh {VSCE_KEY}
66
7- VSCE_KEY=$1
87PACKAGE_VERSION=$( grep ' version' package.json \
98 | cut -d ' "' -f4)
109RELEASES_FOLDER=releases
1110OUTPUT_FILE=coderoad-$PACKAGE_VERSION .vsix
1211RAW_PATH=https://github.com/coderoad/coderoad-vscode/blob/master
1312
13+ if [[ -z " $VSCE_KEY " ]] && [[ -z " $OVSX_KEY " ]]; then
14+ echo " VSCE_KEY or OVSX_KEY is required"
15+ exit 1;
16+ fi
17+
1418# comment out until confident in testing process
1519git tag -a v$PACKAGE_VERSION -m " Releasing version v$PACKAGE_VERSION "
1620git push origin v$PACKAGE_VERSION
1721
18- # send to VSCode Marketplace via
19- vsce publish -p $VSCE_KEY --packagePath ./$RELEASES_FOLDER /$OUTPUT_FILE --baseContentUrl $RAW_PATH --baseImagesUrl $RAW_PATH
22+ # send to VSCode Marketplace
23+ if ! [[ -z " $VSCE_KEY " ]]; then
24+ echo " publishing to vscode marketplace..."
25+ npx vsce publish -p $VSCE_KEY --packagePath ./$RELEASES_FOLDER /$OUTPUT_FILE --baseContentUrl $RAW_PATH --baseImagesUrl $RAW_PATH
26+ fi
27+ # send to Open-VSX Marketplace (https://github.com/eclipse/openvsx/wiki/Publishing-Extensions)
28+ if ! [[ -z " $OVSX_KEY " ]]; then
29+ echo " publishing to open-vsx marketplace..."
30+ npx ovsx publish -p $OVSX_KEY ./$RELEASES_FOLDER /$OUTPUT_FILE --baseContentUrl $RAW_PATH --baseImagesUrl $RAW_PATH "
31+ fi
You can’t perform that action at this time.
0 commit comments