diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index bb7419b..851b9a6 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -8,6 +8,9 @@ on: env: GODOT_VERSION: 4.2 EXPORT_NAME: immersive-home + GODOT_ANDROID_KEYSTORE_RELEASE_PATH: /home/runner/work/Immersive-Home/Immersive-Home/debug.keystore + GODOT_ANDROID_KEYSTORE_RELEASE_USER: androiddebugkey + GODOT_ANDROID_KEYSTORE_RELEASE_PASSWORD: android jobs: # job id, can be anything @@ -39,9 +42,6 @@ jobs: run: | keytool -keyalg RSA -genkeypair -alias androiddebugkey -keypass android -keystore debug.keystore -storepass android -dname "CN=Android Debug,O=Android,C=US" -validity 9999 -deststoretype pkcs12 - mkdir -p ~/.config/godot - cp -v ./editor_settings-4.tres ~/.config/godot/ - mkdir -p ./android/build touch ./android/build/.gdignore @@ -54,7 +54,7 @@ jobs: - name: export game id: export # Use latest version (see releases for all versions) - uses: moorbren/godot-export + uses: nitwel/godot-export@latest with: # Defining all the required inputs godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.2/Godot_v4.2-stable_linux.x86_64.zip diff --git a/.github/workflows/build-prod.yml b/.github/workflows/build-prod.yml index 6d45415..59219b4 100644 --- a/.github/workflows/build-prod.yml +++ b/.github/workflows/build-prod.yml @@ -46,38 +46,22 @@ jobs: echo "${{ secrets.KEYSTORE_RELEASE }}" | base64 -di > release.keystore - mkdir -p ~/.config/godot - cp -v ./editor_settings-4.tres ~/.config/godot/ - mkdir -p ./android/build touch ./android/build/.gdignore - wget -nv https://downloads.tuxfamily.org/godotengine/4.2/Godot_v4.2-stable_export_templates.tpz -O ./godot_templates.tpz - unzip -q ./godot_templates.tpz -d . - rm ./godot_templates.tpz - unzip -q ./templates/android_source.zip -d ./android/build/ - rm ./templates/android_source.zip - - sed -i 's/singleInstancePerTask/singleTask/g' ./android/build/AndroidManifest.xml - - versioncode=$(eval "git tag | grep -v "test" | wc -l") - sed -i "s/BUILD_VERSION_CODE/$versioncode/g" export_presets.cfg - sed -i "s/android:versionCode=\"1\"/android:versionCode=\"$versioncode\"/g" ./android/build/AndroidManifest.xml - - sed -i 's/BUILD_VERSION/${{ github.ref_name }}/g' export_presets.cfg - sed -i "s/android:versionName=\"1.0\"/android:versionName=\"${{ github.ref_name }}\"/g" ./android/build/AndroidManifest.xml - - name: export game id: export # Use latest version (see releases for all versions) - uses: moorbren/godot-export + uses: nitwel/godot-export@latest with: # Defining all the required inputs godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.2/Godot_v4.2-stable_linux.x86_64.zip godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.2/Godot_v4.2-stable_export_templates.tpz relative_project_path: ./ archive_output: true - presets_to_export: "AndroidProduction" + filter_exports: "AndroidProduction" + version: ${{ github.ref_name }}" + production: true - name: create release uses: ncipollo/release-action@v1.11.2 diff --git a/editor_settings-4.tres b/editor_settings-4.tres deleted file mode 100644 index 8803e5a..0000000 --- a/editor_settings-4.tres +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:05ad3273db12b74c881ed1cb4600bb2510f06656a0c48f1d7b0362080eede8d6 -size 324