-
Notifications
You must be signed in to change notification settings - Fork 0
131 lines (105 loc) · 3.39 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
name: Create app with parameters
on:
workflow_dispatch:
inputs:
base_url:
description: "Base Url"
default: "https://www.gapfilm.ir/"
source_channel:
description: "Source Channel"
default: "gp_website"
agent:
description: "Agent"
default: "mj"
env:
BASE_URL: "${{ github.event.inputs.base_url }}"
SOURCE_CHANNEL: "${{ github.event.inputs.source_channel }}"
AGENT: "${{ github.event.inputs.agent }}"
jobs:
Build_AAP:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Up JDK
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: "11"
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Clean project
run: ./gradlew clean
- name: Build Release AAP
run: ./gradlew :app:bundleRelease
- name: Sign AAP
uses: r0adkll/sign-android-release@v1
id: sign_app
with:
releaseDirectory: app/build/outputs/bundle/release
signingKeyBase64: ${{ secrets.SIGN_STORE }}
alias: ${{ secrets.SIGN_ALIAS }}
keyStorePassword: ${{ secrets.SIGN_STORE_PASSWORD }}
keyPassword: ${{ secrets.SIGN_ALIAS_PASSWORD }}
- name: Upload AAP
uses: actions/upload-artifact@v2
with:
name: aap-release
path: ${{ steps.sign_app.outputs.signedReleaseFile }}
Build_Debug_APK:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Up JDK
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: "11"
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Clean project
run: ./gradlew clean
- name: Build Debug APK
run: ./gradlew :app:assembleDebug
- name: Sign APK
uses: r0adkll/sign-android-release@v1
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/debug
signingKeyBase64: ${{ secrets.SIGN_STORE }}
alias: ${{ secrets.SIGN_ALIAS }}
keyStorePassword: ${{ secrets.SIGN_STORE_PASSWORD }}
keyPassword: ${{ secrets.SIGN_ALIAS_PASSWORD }}
- name: Upload Debug Apk
uses: actions/upload-artifact@v2
with:
name: apk-debug
path: ${{ steps.sign_app.outputs.signedReleaseFile }}
Build_Release_APK:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Up JDK
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: "11"
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Clean project
run: ./gradlew clean
- name: Build Release APK
run: ./gradlew :app:assembleRelease
- name: Sign APK
uses: r0adkll/sign-android-release@v1
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGN_STORE }}
alias: ${{ secrets.SIGN_ALIAS }}
keyStorePassword: ${{ secrets.SIGN_STORE_PASSWORD }}
keyPassword: ${{ secrets.SIGN_ALIAS_PASSWORD }}
- name: Upload Release Apk
uses: actions/upload-artifact@v2
with:
name: apk-release
path: ${{ steps.sign_app.outputs.signedReleaseFile }}