-
Notifications
You must be signed in to change notification settings - Fork 9
31 lines (28 loc) · 1.08 KB
/
ci.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
name: CI
on: [ push, pull_request ]
jobs:
build:
name: CI-build
runs-on: ubuntu-latest
steps:
- id: checkout
uses: actions/checkout@v4
- id: setup-java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- id: setup-gradle
uses: gradle/gradle-build-action@v2
- id: decode_keystore
uses: timheuer/base64-to-file@v1
with:
fileName: keystore.jks
encodedString: ${{ secrets.KEYSTORE }}
- id: build
run: ./gradlew build -Pandroid.injected.signing.store.file=${{ steps.decode_keystore.outputs.filePath }} -Pandroid.injected.signing.store.password=${{ secrets.PASSWORD }} -Pandroid.injected.signing.key.alias=${{ secrets.ALIAS }} -Pandroid.injected.signing.key.password=${{ secrets.PASSWORD }} -Pandroid.injected.signing.v1-enabled=true -Pandroid.injected.signing.v2-enabled=true
- id: upload-artifact
uses: actions/upload-artifact@v3
with:
name: artifacts.zip
path: app/build/outputs/apk/release/*.apk