Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion tool/kokoro/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,26 @@ echo "kokoro build start"
echo "kokoro build finished"

echo "kokoro deploy start"
./bin/plugin deploy --channel=dev

KOKORO_TOKEN_FILE="${KOKORO_KEYSTORE_DIR}/${FLUTTER_KEYSTORE_ID}_${FLUTTER_KEYSTORE_NAME}"
if [ ! -f "$KOKORO_TOKEN_FILE" ]; then
echo "Error: Keystore token file not found at $KOKORO_TOKEN_FILE"
exit 1
fi
TOKEN=$(cat "$KOKORO_TOKEN_FILE")

ZIP_FILE="build/distributions/flutter-intellij-kokoro.zip"
if [ ! -f "$ZIP_FILE" ]; then
echo "Error: Zip file not found at $ZIP_FILE"
exit 1
fi

echo "Uploading $ZIP_FILE to JetBrains Marketplace..."
curl -if --fail \
--header "Authorization: Bearer $TOKEN" \
-F pluginId=9212 \
-F file=@"$ZIP_FILE" \
-F channel=dev \
https://plugins.jetbrains.com/plugin/uploadPlugin

echo "kokoro deploy finished"
Loading