2023-11-20 13:32:42 +02:00
|
|
|
# Build the Android APK on push to the master branch
|
|
|
|
name: Build APK
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-11-20 13:35:22 +02:00
|
|
|
- testing
|
2023-11-20 13:32:42 +02:00
|
|
|
|
|
|
|
env:
|
2023-11-20 13:47:24 +02:00
|
|
|
GODOT_VERSION: 4.1.3
|
2023-11-20 13:32:42 +02:00
|
|
|
EXPORT_NAME: immersive-home
|
|
|
|
|
|
|
|
jobs:
|
2023-11-20 16:10:15 +02:00
|
|
|
# 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
|
2023-11-20 13:32:42 +02:00
|
|
|
steps:
|
2023-11-20 16:10:15 +02:00
|
|
|
# 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
|
2023-11-20 13:32:42 +02:00
|
|
|
with:
|
2023-11-20 16:10:15 +02:00
|
|
|
# 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
|
|
|
|
|
2023-11-20 13:32:42 +02:00
|
|
|
- name: Upload APK
|
2023-11-20 14:27:25 +02:00
|
|
|
uses: actions/upload-artifact@v2
|
2023-11-20 13:32:42 +02:00
|
|
|
with:
|
2023-11-20 13:49:29 +02:00
|
|
|
name: immersive-home-debug
|
2023-11-20 16:10:15 +02:00
|
|
|
path: ${{ steps.export.outputs.archive_directory }}
|