Gitea Actions: auto-build signed arm64 APK release on push to main
Some checks failed
Build & Release APK / build (push) Has been cancelled
Some checks failed
Build & Release APK / build (push) Has been cancelled
Mirrors the meditation-timer pipeline; VERSION_CODE/VERSION_NAME are stamped from the run number via app.config.js so Obtainium sees each release as an upgrade. Keystore comes from repo secrets. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
10
app.config.js
Normal file
10
app.config.js
Normal file
@@ -0,0 +1,10 @@
|
||||
/* Wraps app.json so CI can stamp versions: VERSION_NAME → expo.version,
|
||||
VERSION_CODE → android.versionCode (Obtainium needs it to increase). */
|
||||
module.exports = ({ config }) => {
|
||||
const versionCode = parseInt(process.env.VERSION_CODE || '', 10);
|
||||
if (process.env.VERSION_NAME) config.version = process.env.VERSION_NAME;
|
||||
if (Number.isFinite(versionCode)) {
|
||||
config.android = { ...config.android, versionCode };
|
||||
}
|
||||
return config;
|
||||
};
|
||||
Reference in New Issue
Block a user