Dough Git

commit

Move CI to the repo root and add a server check workflow

commit
4bdea93fdd266da51075c39bcce2b3b330420db9
author
Clove Twilight <[email protected]>
date
2026-10-27 12:52
Co-Authored-By: Claude Opus 5.5 <[email protected]>

diff --git a/email/.github/workflows/build.yml b/email/.github/workflows/build.yml
deleted file mode 100644
index b59ea3b..0000000
--- a/email/.github/workflows/build.yml
+++ /dev/null
@@ -1,80 +0,0 @@
-name: Build APK
-
-on:
-  push:
-    branches: [main]
-    tags: ["v*"]
-  pull_request:
-  workflow_dispatch:
-
-permissions:
-  contents: write
-
-# Builds from main replace the same release, so let them finish in order.
-concurrency:
-  group: build-${{ github.ref }}
-  cancel-in-progress: false
-
-jobs:
-  build:
-    runs-on: ubuntu-latest
-    env:
-      HAS_SIGNING_KEY: ${{ secrets.KEYSTORE_BASE64 != '' }}
-    steps:
-      - uses: actions/checkout@v4
-
-      - uses: actions/setup-java@v4
-        with:
-          distribution: temurin
-          java-version: 21
-
-      - uses: gradle/actions/setup-gradle@v4
-
-      # The keystore is stored base64-encoded in secrets. Pull requests from
-      # forks don't get secrets, so they build unsigned.
-      - name: Restore signing key
-        if: env.HAS_SIGNING_KEY == 'true'
-        env:
-          KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
-          KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
-        run: |
-          echo "$KEYSTORE_BASE64" | base64 -d > inbox.jks
-          printf 'storeFile=inbox.jks\nstorePassword=%s\nkeyAlias=inbox\nkeyPassword=%s\n' \
-            "$KEYSTORE_PASSWORD" "$KEYSTORE_PASSWORD" > keystore.properties
-
-      - name: Build
-        env:
-          VERSION_CODE: ${{ github.run_number }}
-          VERSION_NAME: ${{ startsWith(github.ref, 'refs/tags/v') && github.ref_name || format('1.0.{0}', github.run_number) }}
-        run: ./gradlew assembleRelease --console=plain
-
-      - name: Rename APK
-        run: |
-          src=$(ls app/build/outputs/apk/release/*.apk)
-          mv "$src" inbox.apk
-
-      - uses: actions/upload-artifact@v4
-        with:
-          name: inbox-apk
-          path: inbox.apk
-
-      - name: Publish release
-        if: startsWith(github.ref, 'refs/tags/v')
-        env:
-          GH_TOKEN: ${{ github.token }}
-        run: gh release create "$GITHUB_REF_NAME" inbox.apk --generate-notes
-
-      # A rolling "latest" release that always holds the newest build from main,
-      # so releases/download/latest/inbox.apk is a link that never changes.
-      - name: Publish rolling latest
-        if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && env.HAS_SIGNING_KEY == 'true'
-        env:
-          GH_TOKEN: ${{ github.token }}
-          VERSION_NAME: 1.0.${{ github.run_number }}
-        run: |
-          gh release delete latest --cleanup-tag --yes || true
-          gh release create latest inbox.apk \
-            --target "$GITHUB_SHA" \
-            --title "Latest build ($VERSION_NAME)" \
-            --notes "Built from ${GITHUB_SHA::7} on main. Installs over any earlier build." \
-            --latest
diff --git a/email/README.md b/email/README.md
index 8b15b57..fbc6f45 100644
--- a/email/README.md
+++ b/email/README.md
@@ -1,6 +1,6 @@
 # Inbox for Android
 
-An Android app for [Inbox](https://github.com/doughmination/email). It's a
+An Android app for [Inbox](../email). It's a
 [Trusted Web Activity](https://developer.chrome.com/docs/android/trusted-web-activity):
 the live site at https://mail.doughmination.gay, shown full-screen in Chrome,
 with its Web Push notifications delivered as the app's own.
@@ -33,7 +33,7 @@ changing too.
 
 ## CI
 
-`.github/workflows/build.yml` builds on every push and uploads `inbox.apk` as
+`.github/workflows/android.yml` (at the repo root) builds on every push and uploads `inbox.apk` as
 an artifact. Each build from `main` replaces the rolling `latest` release, so
 the newest APK is always at
 https://github.com/doughmination/email-app/releases/download/latest/inbox.apk.