2023-02-11 03:26:29 -08:00
|
|
|
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:
|
2023-06-01 07:22:16 -07:00
|
|
|
- uses: actions/checkout@v3
|
2023-02-11 03:26:29 -08:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- name: env
|
|
|
|
run: cat build.env >> $GITHUB_ENV
|
|
|
|
|
|
|
|
- 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
|
|
|
|
with:
|
|
|
|
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
|
|
|
|
packageName: me.hanh.ywallet
|
|
|
|
releaseFiles: ${{ steps.build.outputs.BUILD_DIR }}/app-fdroid.aab
|
|
|
|
track: internal
|
|
|
|
status: completed
|