Skip to content
Merged

Ci #1

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
859907a
Add GitHub Actions workflow for APK build and release
glowinthedark May 24, 2026
66c22e1
Update keystore environment variable names
glowinthedark May 24, 2026
ccdebeb
Update apk.yml
glowinthedark May 24, 2026
5cec847
Uncomment version name retrieval in workflow
glowinthedark May 24, 2026
ae2771f
Update TAG environment variable handling in workflow
glowinthedark May 24, 2026
db23408
Update apk.yml
glowinthedark May 24, 2026
7ccdeb8
Update APK workflow to trigger on tag pushes
glowinthedark May 24, 2026
b563fab
Update apk.yml
glowinthedark May 24, 2026
d25e745
Update apk.yml
glowinthedark May 24, 2026
75c919b
Update apk.yml
glowinthedark May 24, 2026
27612ee
Merge branch 'Darkrock-Studios:main' into ci
glowinthedark Jul 10, 2026
997b0af
Merge remote-tracking branch 'remotes/glow/ci' into revamp-ci
Jul 10, 2026
83da622
Merge branch 'revamp' into revamp-ci
Jul 10, 2026
7eeb96b
Update checkout action to use 'revamp-ci' branch
glowinthedark Jul 10, 2026
b25ca87
Update APK file name in workflow
glowinthedark Jul 10, 2026
31aa258
Update apk.yml
glowinthedark Jul 10, 2026
144e7dc
Merge branch 'revamp' into revamp-ci
Jul 10, 2026
795d469
Merge branch 'revamp-ci' of github.com:glowinthedark/FastTrack into r…
Jul 10, 2026
9dc3c3d
Merge branch 'revamp' into revamp-ci
Jul 10, 2026
dc20331
Update apk.yml
glowinthedark Jul 10, 2026
b32533d
Rename workflow to 'APK build-and-release'
glowinthedark Jul 10, 2026
b1d68b8
List APK artifacts in workflow
glowinthedark Jul 10, 2026
8b374ff
Merge branch 'revamp' into ci
Jul 10, 2026
543ac15
Merge branch 'ci' of github.com:glowinthedark/FastTrack into ci
Jul 10, 2026
de51060
action
Jul 10, 2026
19b34d2
Update apk.yml
glowinthedark Jul 10, 2026
c9b58ab
(i18n) fix Spanish translation hallucinations
Jul 10, 2026
9406c3a
Merge remote-tracking branch 'glow/ci' into ci
Jul 10, 2026
e242568
Merge branch 'revamp' into ci
Jul 10, 2026
75d510b
db migration schema
Jul 11, 2026
74d3d00
Merge branch 'revamp-v3' into ci
Jul 11, 2026
0e24d83
- `chmod +x ./gradlew`
Jul 11, 2026
b240caa
Merge branch 'revamp-v3' into ci
Jul 11, 2026
75b3e30
Merge branch 'revamp-v3' into ci
Jul 12, 2026
c78b8b2
Merge branch 'revamp' into ci
Jul 12, 2026
7d78646
Merge branch 'revamp' into ci
Jul 12, 2026
8a17170
Update apk.yml
glowinthedark Jul 12, 2026
1e04f0d
Merge branch 'revamp' into ci
Jul 16, 2026
b437ce7
Merge branch 'ci' of github.com:glowinthedark/FastTrack into ci
Jul 16, 2026
bbe95da
Merge branch 'revamp' into ci
Jul 16, 2026
ecff566
Merge branch 'revamp' into ci
Jul 16, 2026
0e9beeb
Merge branch 'revamp' into ci
Jul 16, 2026
dc29043
Merge branch 'revamp-v5' into ci
Aug 16, 2026
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
82 changes: 82 additions & 0 deletions .github/workflows/apk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: APK build-and-release

on:
push:
tags: ['v*']
workflow_dispatch:

jobs:
build-and-release:
name: Build and Release
runs-on: ubuntu-latest
permissions:
contents: write # needed for the release step

steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 0 # needed to fetch the ci branch below
fetch-tags: true

# - name: patch
# run: |
# git fetch origin revamp-ci
# git checkout origin/ci -- app/build.gradle.kts
# echo "PATCH DIFF:"
# git diff -- app/build.gradle.kts

- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6

- name: Grant Permission to Execute
run: chmod +x gradlew

- name: Decode keystore
run: |
echo "${{ secrets.KEYSTORE }}" | base64 --decode > "$RUNNER_TEMP/release.keystore"

- name: Patch applicationId suffix to prevent collision with existing installs
run: |
perl -0777 -pi -e '
s/(release\s*\{\s*\n\s*isMinifyEnabled = true)/$1\n applicationIdSuffix = ".revamp_v3"/
' app/build.gradle.kts

echo "--- patched block ---"
grep -A5 "release {" app/build.gradle.kts

- name: Build Release APK
env:
KEYSTORE: ${{ runner.temp }}/release.keystore
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
run: ./gradlew assembleRelease

- name: list artifacts
run: |
find . -iname '*.apk'

- name: Set TAG env var
run: |
RAW=$(git describe --tags --always --abbrev=0 2>/dev/null)
# CLEAN=$(echo "$RAW" | tr '/' '-' | tr '[:upper:]' '[:lower:]')
echo "TAG=$RAW" >> $GITHUB_ENV
echo "raw=$RAW" >> $GITHUB_OUTPUT

- name: Create GitHub Release
# if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v3
with:
name: ${{ env.TAG }}
tag_name: ${{ env.TAG }}
files: app/build/outputs/apk/release/*.apk
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: false
make_latest: true
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ android {
}
signingConfigs {
create("release") {
storeFile = file(System.getenv("KEYSTORE_FILE") ?: "keystore.jks")
storePassword = System.getenv("KEYSTORE_PASSWORD") ?: ""
storeFile = file(System.getenv("KEYSTORE") ?: "keystore.jks")
storePassword = System.getenv("STORE_PASSWORD") ?: ""
keyAlias = System.getenv("KEY_ALIAS") ?: ""
keyPassword = System.getenv("KEY_PASSWORD") ?: ""
}
Expand Down
Loading