Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/build_app.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build & release APK

on:
workflow_dispatch:
push:
tags:
- '**'
Expand All @@ -11,6 +12,11 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
# DualDrop releases are signed locally and attached by hand (see MAINTAINING.md). Without the
# APP_KEYSTORE secret the tag build still runs, emits an unsigned release APK as an artifact and
# skips the draft release, instead of failing in packageRelease on an empty keystore.
env:
HAS_KEYSTORE: ${{ secrets.APP_KEYSTORE != '' }}
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
Expand All @@ -32,9 +38,11 @@ jobs:
cache: 'gradle'

- name: Decode keystore
if: env.HAS_KEYSTORE == 'true'
run: printf "%s" "${{ secrets.APP_KEYSTORE }}" | base64 --decode > app-keystore.jks

- name: Create keystore.properties
if: env.HAS_KEYSTORE == 'true'
run: |
cat > keystore.properties <<EOF
storePassword=${{ secrets.STOREPASSWORD }}
Expand Down Expand Up @@ -63,10 +71,11 @@ jobs:
# who grabs it instead of the real one gets "App not installed" over their existing install.
# That happened on v1.3.1-rc1 and had to be cleaned up by hand.
- name: Create draft GitHub Release
if: env.HAS_KEYSTORE == 'true'
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: Osmosis ${{ github.ref_name }}
name: DualDrop ${{ github.ref_name }}
draft: true
files: |
app/build/outputs/apk/release/*.apk
Expand Down
Loading