fix(release): inline keystore gen into build step so gradle can see it
dev / Build debug APK (push) Failing after 23s
dev / Build debug APK (push) Failing after 23s
This commit is contained in:
1 parent
c73cd4c816
commit
f153ad8702
1 file changed
+8
-8
@@ -55,9 +55,16 @@ jobs:
|
||||
# dev keystore documented in keystore/README.md (alias "incido",
|
||||
# both passwords "incido_dev_keystore"). Move to a Gitea Actions
|
||||
# secret + production keystore before publishing to Play / F-Droid.
|
||||
- name: Generate dev release keystore
|
||||
- name: Build debug + release APKs
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||
run: |
|
||||
set -e
|
||||
cd repo
|
||||
chmod +x gradlew
|
||||
|
||||
# Mint the dev keystore in the same shell session as the build
|
||||
# so gradle can find it at keystore/release.jks (rootProject.file).
|
||||
mkdir -p keystore
|
||||
keytool -genkey -noprompt -v \
|
||||
-keystore keystore/release.jks \
|
||||
@@ -67,13 +74,6 @@ jobs:
|
||||
-keypass incido_dev_keystore \
|
||||
-dname "CN=Incido Dev, OU=Local, O=Incido, L=Local, ST=Local, C=NZ"
|
||||
|
||||
- name: Build debug + release APKs
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||
run: |
|
||||
set -e
|
||||
cd repo
|
||||
chmod +x gradlew
|
||||
export JAVA_HOME=/tmp/gitea-runner-work/jdk
|
||||
export ANDROID_HOME=/tmp/gitea-runner-work/android-sdk
|
||||
export PATH=$JAVA_HOME/bin:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$PATH
|
||||
|
||||
Reference in new issue
Block a user