-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 1.12 KB
/
deploy.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
name: Android Release
on:
push:
tags: [ "v*.*.*" ]
env:
FACTCHECK_API_KEY: ${{secrets.FACTCHECK_API_KEY}}
FACTCHECK_KEYSTORE: ${{secrets.FACTCHECK_KEYSTORE}}
FACTCHECK_KEYSTORE_FILE: ${{secrets.FACTCHECK_KEYSTORE_FILE}}
FACTCHECK_KEY_ALIAS: ${{secrets.FACTCHECK_KEY_ALIAS}}
FACTCHECK_KEYSTORE_PASSWORD: ${{secrets.FACTCHECK_KEYSTORE_PASSWORD}}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 23
uses: actions/setup-java@v4
with:
java-version: '23'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
validate-wrappers: true
- name: Setup keystore
run: echo $FACTCHECK_KEYSTORE | base64 -d -o $FACTCHECK_KEYSTORE_FILE
- name: Build release artifact
run: ./gradlew assembleRelease
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: apk
path: app/build/outputs/apk/release/app-release.apk