Open YajanaRao opened 4 years ago
while sending document you need to send absolute path not relative path document: ${{ github.workspace }}/app/build/outputs/apk/debug/app-debug.apk
I am saving my apk in github workspace
while sending document you need to send absolute path not relative path document: ${{ github.workspace }}/app/build/outputs/apk/debug/app-debug.apk
I am saving my apk in github workspace
It sends the link to the apk right ?. I was wondering is there a possibility of sending apk file itself ?
No it sends the apk itself Let me show you my code
`jobs: build: name: Generate APK runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build Debug APK
run: bash ./gradlew :app:assembleDebug
- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: App
path: ${{ github.workspace }}/app/build/outputs/apk/debug/app-debug.apk
- name: send custom message
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.MESSAGEID }}
token: ${{ secrets.BOTTOKEN }}
message: |
Below is the apk for commit: ${{ github.event.head_commit.message }}
document: ${{ github.workspace }}/app/build/outputs/apk/debug/app-debug.apk`
не работает для меня
did not work
im also facing this issue
i have the same problem. maybe because my apk file is 200 Mb Size, by telegram api documentation , bots just suppot until 50 Mb
Facing the same issue when using curl to upload an APK, if the file exceeds a certain limit (looks like its 50 MB) the file is not uploaded.
Looks like it is possible to work around this by hosting your own bot api server: https://core.telegram.org/bots/api#using-a-local-bot-api-server
how do you fill TELEGRAM_TO secret? I've tried set group chat id with "-" and without and no success both
I have configured to upload apk after build in github actions. I get text instead of file
This is what I get
This is the log