-
Notifications
You must be signed in to change notification settings - Fork 5
74 lines (62 loc) Β· 2.25 KB
/
mogakrunci.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: MoGakRun CI
on:
pull_request:
branches: [ "main", "develop" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'zulu'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Create google-service
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./data/google-services.json
- name: Create Local Properties
run: echo '${{ secrets.LOCAL_PROPERTIES }}' > ./local.properties
- name: Build with Gradle
run: ./gradlew build
- name: Build Debug APK
run: bash ./gradlew assembleDebug --stacktrace
- name: Build Release APK
run: bash ./gradlew assembleRelease --stacktrace
- name: ν
μ€νΈμ© Release APK artifact μ
λ‘λ
uses: actions/upload-artifact@v3
with:
name: app-release-unsigned.apk
path: app/build/outputs/apk/release/app-release-unsigned.apk
- name: ν
μ€νΈμ© Debug APK artifact μ
λ‘λ
uses: actions/upload-artifact@v3
with:
name: app-debug.apk
path: app/build/outputs/apk/debug/app-debug.apk
- uses: MeilCli/slack-upload-file@v1
continue-on-error: true
with:
slack_token: ${{ secrets.SLACK_READ_WRITE_TOKEN }}
channels: ${{ secrets.SLACK_CHANNEL_DEPLOY }}
file_path: 'app/build/outputs/apk/release/app-release-unsigned.apk'
file_name: 'app-release-unsigned.apk'
file_type: 'apk'
initial_comment: 'π release λ²μ ν
μ€νΈ μ±!'
- uses: MeilCli/slack-upload-file@v1
continue-on-error: true
with:
slack_token: ${{ secrets.SLACK_READ_WRITE_TOKEN }}
channels: ${{ secrets.SLACK_CHANNEL_DEPLOY }}
file_path: 'app/build/outputs/apk/debug/app-debug.apk'
file_name: 'app-debug.apk'
file_type: 'apk'
initial_comment: 'π debug λ²μ ν
μ€νΈ μ±!'
- name: action-slack
uses: 8398a7/[email protected]
with:
status: ${{ job.status }}
author_name: λΉλ μλ¦Ό
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}