-
Notifications
You must be signed in to change notification settings - Fork 6
/
androidDebugAPKToTelegram.yml
54 lines (47 loc) · 1.56 KB
/
androidDebugAPKToTelegram.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: Unit Test with Debug APK
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Unit Test and Generate Debug 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
if: success()
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
if: success()
with:
to: ${{ secrets.MESSAGEID }}
token: ${{ secrets.BOTTOKEN }}
message: |
Commit Message: ${{ github.event.head_commit.message }}
Commited Actor: ${{ github.actor }}
Build Info: https://github.com/${{github.repository}}/commit/${{github.sha}}/checks
Build Status: ${{ job.status }}
document: ${{ github.workspace }}/app/build/outputs/apk/debug/app-debug.apk
- name: send custom message
uses: appleboy/telegram-action@master
if: failure()
with:
to: ${{ secrets.MESSAGEID }}
token: ${{ secrets.BOTTOKEN }}
message: |
Commit Message: ${{ github.event.head_commit.message }}
Commited Actor: ${{ github.actor }}
Build Info: https://github.com/${{github.repository}}/commit/${{github.sha}}/checks
Build Status: ${{ job.status }}