From edbf80f287baa5d7d7edd1974019b2e3498f988f Mon Sep 17 00:00:00 2001 From: iliyangermanov Date: Fri, 25 Aug 2023 15:54:07 +0300 Subject: [PATCH] Upload the APK to the Telegram group --- .github/workflows/apk.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/apk.yml b/.github/workflows/apk.yml index 7e09978cdd..1df881a812 100644 --- a/.github/workflows/apk.yml +++ b/.github/workflows/apk.yml @@ -28,8 +28,16 @@ jobs: - name: Build Demo APK run: ./gradlew assembleDemo - - name: Upload the APK to Github Actions + - name: Upload APK to Github Actions uses: actions/upload-artifact@v3 with: name: Ivy-Wallet-Demo.apk path: app/build/outputs/apk/demo/app-demo.apk + + - name: Upload APK in Telegram Group + run: | + curl -F "chat_id=-1001647280565" \ + -F "document=@app/build/outputs/apk/demo/app-demo.apk" \ + -F "reply_to_message_id=16118" \ + https://api.telegram.org/bot${{ secrets.BOTFATHER_TELEGRAM_BOT_TOKEN }}/sendDocument +