-
Notifications
You must be signed in to change notification settings - Fork 24
54 lines (45 loc) · 1.33 KB
/
build-android.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
49
50
51
52
53
54
name: Build and Release Android/FDroid
on:
workflow_dispatch:
push:
tags:
- "v*"
env:
JKS_PASSWORD: ${{ secrets.JKS_PASSWD }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: env
run: cat build.env >> $GITHUB_ENV
- name: Clean
id: clean
run: ./build-scripts/clean-runner.sh
- name: Build
id: build
run: ./build-scripts/build-android.sh
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: |
${{ steps.build.outputs.BUILD_DIR }}/app-fdroid.aab
${{ steps.build.outputs.BUILD_DIR }}/app-fdroid.apk
- name: publish
uses: r0adkll/upload-google-play@v1
if: startsWith(github.ref, 'refs/tags/v')
continue-on-error: true
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: me.hanh.ywallet
releaseFiles: ${{ steps.build.outputs.BUILD_DIR }}/app-fdroid.aab
track: internal
status: completed
- uses: actions/upload-artifact@v3
with:
name: APK
path: ${{ steps.build.outputs.BUILD_DIR }}/app-fdroid.apk
retention-days: 3