I have added the Android export and tested it on my local machine with the command:
.\godot.windows.editor.dev.x86_64.mono.console.exe --path "D:\GodotProjects\azheir\test-ci-cd" --export-release "Android" "D:\GodotProjects\azheir\build\Android\azheir.apk" --headless
It works locally; however, when I push to GitHub, it cannot export for Android. Prior to this, exports for Windows and Linux worked well.
Here is the full export log:
🖥️ Exporting preset Android
/home/runner/.local/share/godot/godot_executable/Godot_v4.3-stable_mono_linux_x86_64/Godot_v4.3-stable_mono_linux.x86_64 /home/runner/work/azheir/azheir/test-ci-cd/project.godot --headless --export-release Android /home/runner/.local/share/godot/builds/Android/azheir.apk
Godot Engine v4.3.stable.mono.official.77dcf97d8 - https://godotengine.org
export: begin: Exporting for Android steps: 105
0 param: --xr_mode_regular
1 param: --use_immersive
export: step 0: Creating APK...
...
WARNING: Code Signing: Could not find keystore, unable to export.
at: add_message (editor/export/editor_export_platform.h:179)
export: end
ERROR: Project export for preset "Android" failed.
at: _fs_changed (editor/editor_node.cpp:1028)
ERROR: Condition "!EditorSettings::get_singleton() || !EditorSettings::get_singleton()->has_setting(p_setting)" is true. Returning: Variant()
at: _EDITOR_GET (editor/editor_settings.cpp:1289)
Error: The process '/home/runner/.local/share/godot/godot_executable/Godot_v4.3-stable_mono_linux_x86_64/Godot_v4.3-stable_mono_linux.x86_64' failed with exit code 1
It appears that there is an issue with the keystore, as it states, "Could not find keystore, unable to export." I tried to add environment variables:
- name: Set Environment Variables
run: |
echo "GODOT_ANDROID_KEYSTORE_RELEASE_PATH=${{ secrets.GODOT_ANDROID_KEYSTORE_RELEASE_PATH }}" >> $GITHUB_ENV
echo "GODOT_ANDROID_KEYSTORE_RELEASE_USER=${{ secrets.GODOT_ANDROID_KEYSTORE_RELEASE_USER }}" >> $GITHUB_ENV
echo "GODOT_ANDROID_KEYSTORE_RELEASE_PASSWORD=${{ secrets.GODOT_ANDROID_KEYSTORE_RELEASE_PASSWORD }}" >> $GITHUB_ENV
But that's not working.
I have added the Android export and tested it on my local machine with the command:
It works locally; however, when I push to GitHub, it cannot export for Android. Prior to this, exports for Windows and Linux worked well.
Here is the full export log:
It appears that there is an issue with the keystore, as it states, "Could not find keystore, unable to export." I tried to add environment variables:
But that's not working.