-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (40 loc) · 1.17 KB
/
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
name: Build Develop
on:
push:
branches:
- latest
tags:
- 'v*'
jobs:
build:
name: Build Application
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-build-${{ hashFiles('gradlew') }}
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '17'
- name: Load keystore
run: echo "${{ secrets.KEYSTORE }}" | base64 -d > app/keystore.jks
- name: Bundle app
run: |
./gradlew app:bundleRelease
mv app/build/outputs/bundle/release/app-release.aab badradio.aab
env:
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
- uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
artifacts: badradio.aab