-
Notifications
You must be signed in to change notification settings - Fork 14
68 lines (55 loc) · 1.83 KB
/
signed-build.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
name: Signed Build
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
build-signed-apk:
name: Build Signed APK
runs-on: ubuntu-latest
steps:
- name: Project Checkout
uses: actions/checkout@v4
- name: Setup Android Build
uses: ./.github/actions/setup-android-build
- name: Decode Keystore
run: |
echo "${{ secrets.KEYSTORE }}" | base64 -d > ${{ github.workspace }}/keystore/release.jks
- name: Build
run: ./gradlew app:assemblePinboardapiRelease
env:
SIGN_BUILD: true
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
- name: Upload APK
if: success()
uses: actions/upload-artifact@v4
with:
name: signed-apk
path: app/build/outputs/apk/pinboardapi/release/*.apk
build-signed-aab:
name: Build Signed AAB
runs-on: ubuntu-latest
steps:
- name: Project Checkout
uses: actions/checkout@v4
- name: Setup Android Build
uses: ./.github/actions/setup-android-build
- name: Decode Keystore
run: |
echo "${{ secrets.KEYSTORE }}" | base64 -d > ${{ github.workspace }}/keystore/release.jks
- name: Build
run: ./gradlew app:bundlePinboardapiRelease
env:
SIGN_BUILD: true
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
- name: Upload AAB
if: success()
uses: actions/upload-artifact@v4
with:
name: signed-aab
path: app/build/outputs/bundle/pinboardapiRelease/*.aab