-
Notifications
You must be signed in to change notification settings - Fork 30
54 lines (50 loc) · 1.54 KB
/
Android CD.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Android CD
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
package:
name: Generate APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: 11
distribution: 'temurin'
- name: Grant Permission to Execute
run: chmod +x gradlew
- name: Build debug APK
run: bash ./gradlew assembleDebug --stacktrace
- name: Upload APK to Github Artifacts
uses: actions/[email protected]
with:
name: app
path: app/build/outputs/apk/debug/app-debug.apk
delevery-on-telegram:
name: Send Results on Telegram
needs: [package]
runs-on: ubuntu-latest
steps:
- name: Download Apk Stored Artifact
uses: actions/download-artifact@v3
with:
name: app
- name: send Apk on telegram message on push
uses: appleboy/telegram-action@master
with:
to: "1767844955"
token: "5915457647:AAGjdQ2IfM6SWg_iKYgIXuRVsEjA-WIJOBs"
message: |
Hi Guys,
${{ github.actor }} created commit:
Commit message: ${{ github.event.commits[0].message }}
Repository: ${{ github.repository }}
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
Created By @JahidHasanCo
document: app-debug.apk