-
-
Notifications
You must be signed in to change notification settings - Fork 58
42 lines (38 loc) · 1.07 KB
/
androidCompat.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
name: Gallery CI
on:
push:
branches:
- v1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Make Gradle executable
run: chmod +x ./gradlew
- name: Load Maps Token
env:
MAPS_TOKEN: $
run: echo MAPS_TOKEN=\"$MAPS_TOKEN\" > ./api.properties
- name: Build Release APK
run: ./gradlew assembleRelease
- uses: r0adkll/sign-android-release@v1
id: signed_release
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "34.0.0"
- uses: actions/upload-artifact@v3
with:
name: Gallery Release
path: ${{steps.signed_release.outputs.signedReleaseFile}}