From 29a8e504d39ebf651088c1561b4bd52380a4fa23 Mon Sep 17 00:00:00 2001 From: Nitwel Date: Mon, 20 Nov 2023 15:10:15 +0100 Subject: [PATCH] switch to different workflow action --- .github/workflows/build-debug.yml | 46 ++++++++++++++++--------------- export_presets.cfg | 2 +- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index 41365a4..ac55e92 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -11,31 +11,33 @@ env: EXPORT_NAME: immersive-home jobs: - build: - runs-on: ubuntu-20.04 - container: - image: barichello/godot-ci:4.1.3 + # job id, can be anything + export_game: + # Always use ubuntu-latest for this action + runs-on: ubuntu-latest + # Add permission for release creation. Can be made narrower according to your needs + permissions: write-all + # Job name, can be anything + name: Export Game steps: - - name: Checkout - uses: actions/checkout@v2 + # Always include the checkout step so that + # your project is available for Godot to export + - name: checkout + uses: actions/checkout@v3.3.0 + + - name: export game + id: export + # Use latest version (see releases for all versions) + uses: firebelley/godot-export@v5.2.1 with: - lfs: true - - name: Setup - run: | - mkdir -v -p ~/.local/share/godot/export_templates - mv /root/.local/share/godot/export_templates/4.1.3.stable ~/.local/share/godot/export_templates/4.1.3.stable - ls -l ~/.local/share/godot/export_templates/4.1.3.stable - mkdir -v -p ~/.android - mv /root/debug.keystore ~/.android/debug.keystore - ls -l ~/.android - - name: Android Export - run: | - mkdir -v -p /build/android - ls -l /root/ - godot -v --export-debug --debug-collisions --headless "Android" /build/android/immersive-home.apk - ls -l /build/android + # Defining all the required inputs + godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.1.3/Godot_v4.1.3-stable_linux.x86_64.zip + godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.1.3/Godot_v4.1.3-stable_export_templates.tpz + relative_project_path: ./ + archive_output: true + - name: Upload APK uses: actions/upload-artifact@v2 with: name: immersive-home-debug - path: /build/android/immersive-home.apk + path: ${{ steps.export.outputs.archive_directory }} diff --git a/export_presets.cfg b/export_presets.cfg index d072321..db9013a 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -8,7 +8,7 @@ custom_features="" export_filter="all_resources" include_filter="*.j2" exclude_filter="" -export_path="" +export_path="builds/android/immersive-home.apk" encryption_include_filters="" encryption_exclude_filters="" encrypt_pck=false