Skip to content

Commit ed40dda

Browse files
committed
add nightly-build action
1 parent b125a9b commit ed40dda

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Nightly Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
nightlyBuild:
11+
name: Generate Nightly Build
12+
runs-on: ubuntu-latest
13+
if: ${{ false }}
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 1
18+
19+
- name: set up JDK
20+
uses: actions/setup-java@v2
21+
with:
22+
java-version: '11'
23+
distribution: 'adopt'
24+
cache: gradle
25+
26+
- name: Decode google-services.json
27+
run: echo ${{ secrets.FIREBASE_SECRET }} > ${{ github.workspace }}/app/google-services.json
28+
29+
- name: Build Apk
30+
run: ./gradlew assembleProductionDebug --stacktrace
31+
32+
- name: Finding Apk
33+
id: apk_finder
34+
run: echo ::set-output name=APK_PATH::`find . -type f -iname *.apk`
35+
36+
- name: Send Apk in Telegram
37+
uses: appleboy/[email protected]
38+
with:
39+
to: ${{ secrets.TELEGRAM_TO }}
40+
token: ${{ secrets.TELEGRAM_TOKEN }}
41+
document: ${{ steps.apk_finder.outputs.APK_PATH }}

0 commit comments

Comments
 (0)