50
50
restore-keys : |
51
51
gradle-builds
52
52
53
+ - name : Setup SDK
54
+ run : |
55
+ echo "ANDROID_HOME=${ANDROID_HOME}"
56
+ echo "ANDROID_SDK_ROOT=${ANDROID_SDK_ROOT}"
57
+ mkdir -p "$ANDROID_HOME/licenses/"
58
+ echo > "$ANDROID_HOME/licenses/android-sdk-license"
59
+ echo -n 24333f8a63b6825ea9c5514f83c2829b004d1fee > "$ANDROID_HOME/licenses/android-sdk-license"
60
+ $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "cmake;3.31.1"
61
+ echo "sdk.dir=${ANDROID_HOME}" > local.properties
62
+
53
63
- name : Grant execute permission for gradlew
54
64
run : chmod +x gradlew
55
65
69
79
if : ${{ !github.event.pull_request }}
70
80
with :
71
81
path : ' ./app/build/outputs/*'
72
- name : build_output_${{ github.event.head_commit.id }}.zip
82
+ name : build_output_${{ github.event.head_commit.id }}
73
83
74
84
upload-telegram :
75
85
name : Upload Release
@@ -80,11 +90,11 @@ jobs:
80
90
- telegram-bot-api
81
91
steps :
82
92
- name : Download Artifacts
83
- uses : actions/download-artifact@v4.1.7
93
+ uses : actions/download-artifact@v4
84
94
with :
85
95
path : artifacts
86
96
- name : Download Telegram Bot API Binary
87
- uses : actions/download-artifact@master
97
+ uses : actions/download-artifact@v4
88
98
with :
89
99
name : telegram-bot-api-binary
90
100
path : .
@@ -100,6 +110,7 @@ jobs:
100
110
run : |
101
111
ESCAPED=`python3 -c 'import json,os,urllib.parse; msg = json.dumps(os.environ["COMMIT_MESSAGE"]); print(urllib.parse.quote(msg if len(msg) <= 1024 else json.dumps(os.environ["COMMIT_URL"])))'`
102
112
export universal=$(find artifacts -name "*.apk")
113
+ echo "universal=$universal"
103
114
chmod +x telegram-bot-api-binary
104
115
./telegram-bot-api-binary --api-id=21724 --api-hash=3e0cb5efcd52300aec5994fdfc5bdc16 --local 2>&1 > /dev/null &
105
116
curl -v "http://127.0.0.1:8081/bot${{ secrets.TELEGRAM_TOKEN }}/sendMediaGroup?chat_id=-${{ vars.TG_CI_UPLOAD_TARGET_CHANNEL }}&message_thread_id=${{ vars.TG_CI_UPLOAD_TARGET_REPLY_ID }}&media=%5B%7B%22type%22%3A%22document%22%2C%20%22media%22%3A%22attach%3A%2F%2Funiversal%22%2C%22parse_mode%22%3A%22MarkdownV2%22%2C%22caption%22:${ESCAPED}%7D%5D" \
0 commit comments