From 08be2845754d69c6fde02b7f57db59e0b9589b19 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 8 Nov 2026 10:03:12 +0000 Subject: [PATCH] CI: don't fail tag builds when no signing key is configured The release workflow came from Osmosis and expects APP_KEYSTORE and the password secrets. DualDrop has none (releases are signed locally and attached by hand), so every tag push failed in packageRelease. Signing and the draft release now run only when the secret exists; otherwise the build still checks the code and uploads an unsigned APK artifact. Also name drafts 'DualDrop' and allow a manual run. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WEbHiLYToXH89NmAHhrNXt --- .github/workflows/build_app.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_app.yml b/.github/workflows/build_app.yml index d6b4968..8660187 100644 --- a/.github/workflows/build_app.yml +++ b/.github/workflows/build_app.yml @@ -1,6 +1,7 @@ name: Build & release APK on: + workflow_dispatch: push: tags: - '**' @@ -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 @@ -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 <