-
-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (49 loc) · 1.48 KB
/
ci.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
55
56
57
58
59
name: Check Commit CI
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:
concurrency:
group: environment-${{ github.ref }}
cancel-in-progress: false
jobs:
build:
env:
KEYSTORE_FILE: ${{secrets.KEYSTORE_FILE}}
KEYSTORE_KEY_ALIAS: ${{secrets.KEYSTORE_KEY_ALIAS}}
KEYSTORE_KEY_PASSWORD: ${{secrets.KEYSTORE_KEY_PASSWORD}}
KEYSTORE_STORE_PASSWORD: ${{secrets.KEYSTORE_STORE_PASSWORD}}
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: setup jdk 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: make gradlew executable
run: chmod +x ./gradlew
# - name: compile debug kotlin
# run: ./gradlew compileDebugKotlin
- name: build debug artifact
run: ./gradlew app:assembleDebug
- name: upload artifacts to outputs
uses: actions/upload-artifact@v4
with:
path: |
app/build/outputs/apk
- name: send telegram message
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO_ID }}
token: ${{ secrets.TELEGRAM_TOKEN }}
disable_notification: false
disable_web_page_preview: true
document: app/build/outputs/apk/**/*.apk
# message_file: ./releaseNotes.txt