generated from aptx113/my-android-template
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (50 loc) · 1.6 KB
/
deploy_app.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
name: Deploy App
on:
pull_request:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run Tests
id: test
run: ./gradlew test
- name: Build with Gradle
id: build
run: ./gradlew build
- name: Build Release AAB
id: buildRelease
run: ./gradlew bundleRelease
- name: Sign AAB
id: sign
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/bundle/prodRelease
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
# - name: Create service_account.json
# id: createServiceAccount
# run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
#
# - name: Deploy to Play Store (BETA)
# id: deploy
# uses: r0adkll/upload-google-play@v1
# with:
# serviceAccountJson: service_account.json
# packageName: com.package
# releaseFile: app/build/outputs/bundle/prodRelease/app-prod-release.aab
# track: beta
# whatsNewDirectory: whatsnew/
- name: Notify on Slack
uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
if: always()