-
Notifications
You must be signed in to change notification settings - Fork 224
43 lines (39 loc) · 1.15 KB
/
build-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
name: Build APP
on:
push:
branches: [ "master", "old-android" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: sparkfabrik/[email protected]
with:
project-path: .
output-path: app-debug.apk
fastlane-env: "debug"
- uses: actions/upload-artifact@v3
if: github.event_name == 'pull_request'
name: Upload app APK
with:
name: App bundle
path: app-debug.apk
- uses: r0adkll/sign-android-release@v1
if: github.event_name != 'pull_request'
name: Sign app APK
id: sign_app
with:
releaseDirectory: .
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
- uses: actions/upload-artifact@v3
if: github.event_name != 'pull_request'
name: Upload signed app APK
with:
name: Signed app bundle
path: ${{steps.sign_app.outputs.signedReleaseFile}}