-
-
Notifications
You must be signed in to change notification settings - Fork 6
66 lines (63 loc) · 2.22 KB
/
android-build-deploy.yaml
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
name: android-build-deploy
on:
push:
tags:
- '*'
permissions:
actions: write
repository-projects: write
jobs:
android-build-deploy:
runs-on: ubuntu-22.04
env:
KEYSTORE: ${{ secrets.KEYSTORE }}
KEYSTORE_PASSPHRASE: ${{ secrets.KEYSTORE_PASSPHRASE }}
KEYSTORE_PROPERTIES: ${{ secrets.KEYSTORE_PROPERTIES }}
KEYSTORE_PROPERTIES_PASSPHRASE: ${{ secrets.KEYSTORE_PROPERTIES_PASSPHRASE }}
KOIN_PROPERTIES: ${{ secrets.KOIN_PROPERTIES }}
KOIN_PROPERTIES_PASSPHRASE: ${{ secrets.KOIN_PROPERTIES_PASSPHRASE }}
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
GOOGLE_SERVICES_PASSPHRASE: ${{ secrets.GOOGLE_SERVICES_PASSPHRASE }}
steps:
- uses: actions/checkout@v4
- name: Increase swapfile
run: |
chmod +x .github/scripts/action-swap-increase.sh
bash .github/scripts/action-swap-increase.sh
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
# cache: 'gradle'
- name: Wait for tests to succeed
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
running-workflow-name: android-build-deploy
check-name: android-unit-test
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: set up pre-deploy configurations
run: |
bash .github/scripts/pre-config.sh
bash .github/scripts/pre-deploy.sh
- name: Post setup clean up
run: |
bash .github/scripts/cleanup-temp-directory.sh
- name: Fetch tags
run: git fetch --tags --force
- name: build release APKs
run: ./gradlew assembleRelease --no-daemon
- uses: ericcornelissen/git-tag-annotation-action@v2
id: tag_data
- uses: marvinpinto/action-automatic-releases@latest
with:
title: "${{ steps.tag_data.outputs.git-tag-annotation }}"
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
app/build/outputs/apk/**/release/*.apk
app/build/outputs/apk/**/release/*.json