Skip to content

Commit f98a22a

Browse files
[build] inline dev-build upload in deploy.sh (#8868)
Removes the call to `plugin..dart deploy` in favor of a bash implementation inline. Fixes: #8866 . --- Review the contribution guidelines below: - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. - [x] I've included the required information in the description above. - [x] My up-to-date information is in the `AUTHORS` file. - [x] I've updated `CHANGELOG.md` if appropriate. <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide](../CONTRIBUTING.md) and the [Flutter organization contributor guide]([https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Dart contributions to our repos should follow the [Dart style guide](https://dart.dev/guides/language/effective-dart) and use `dart format`. - Java and Kotlin contributions should strive to follow Java and Kotlin best practices ([discussion](#8098)). </details> --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 66bcb11 commit f98a22a

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

tool/kokoro/deploy.sh

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,26 @@ echo "kokoro build start"
1010
echo "kokoro build finished"
1111

1212
echo "kokoro deploy start"
13-
./bin/plugin deploy --channel=dev
13+
14+
KOKORO_TOKEN_FILE="${KOKORO_KEYSTORE_DIR}/${FLUTTER_KEYSTORE_ID}_${FLUTTER_KEYSTORE_NAME}"
15+
if [ ! -f "$KOKORO_TOKEN_FILE" ]; then
16+
echo "Error: Keystore token file not found at $KOKORO_TOKEN_FILE"
17+
exit 1
18+
fi
19+
TOKEN=$(cat "$KOKORO_TOKEN_FILE")
20+
21+
ZIP_FILE="build/distributions/flutter-intellij-kokoro.zip"
22+
if [ ! -f "$ZIP_FILE" ]; then
23+
echo "Error: Zip file not found at $ZIP_FILE"
24+
exit 1
25+
fi
26+
27+
echo "Uploading $ZIP_FILE to JetBrains Marketplace..."
28+
curl -if --fail \
29+
--header "Authorization: Bearer $TOKEN" \
30+
-F pluginId=9212 \
31+
-F file=@"$ZIP_FILE" \
32+
-F channel=dev \
33+
https://plugins.jetbrains.com/plugin/uploadPlugin
1434

1535
echo "kokoro deploy finished"

0 commit comments

Comments
 (0)