Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitwel committed Nov 20, 2023
2 parents b43847d + 5b84add commit 8d92ca7
Show file tree
Hide file tree
Showing 9 changed files with 462 additions and 24 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,10 @@ jobs:
relative_project_path: ./
archive_output: true

- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: immersive-home-debug
path: ${{ steps.export.outputs.archive_directory }}

- name: create release
uses: ncipollo/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
generateReleaseNotes: false
prerelease: true
artifacts: ${{ steps.export.outputs.archive_directory }}/* # Added "/*" at the end is glob pattern match for this action
78 changes: 78 additions & 0 deletions .github/workflows/build-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Build the Android APK on push to the master branch
name: Build Release APK
on:
push:
tags:
- "v*"
- "!v*-test"

env:
GODOT_VERSION: 4.1.3
EXPORT_NAME: immersive-home

jobs:
# 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:
# Always include the checkout step so that
# your project is available for Godot to export
- name: checkout
uses: actions/[email protected]
with:
lfs: true

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "temurin"

- name: Setup Android SDK
uses: android-actions/setup-android@v3

- name: Setup Android Export
run: |
echo "${{ secrets.KEYSTORE_RELEASE }}" | base64 -di > release.keystore
rm export_presets.cfg
mv export_presets_prod.cfg export_presets.cfg
echo keystore/release="/home/runner/work/Immersive-Home/Immersive-Home/release.keystore" > ./export_presets.cfg
echo keystore/release_user="${{ secrets.RELEASE_USER }}" > ./export_presets.cfg
echo keystore/release_password="${{ secrets.RELEASE_PASSWORD }}" > ./export_presets.cfg
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.1.3/Godot_v4.1.3-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
- name: export game
id: export
# Use latest version (see releases for all versions)
uses: firebelley/[email protected]
with:
# 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: create release
uses: ncipollo/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
artifacts: ${{ steps.export.outputs.archive_directory }}/* # Added "/*" at the end is glob pattern match for this action
37 changes: 34 additions & 3 deletions assets/banner.png.import
Git LFS file not shown
37 changes: 34 additions & 3 deletions assets/logo-background.png.import
Git LFS file not shown
37 changes: 34 additions & 3 deletions assets/logo.png.import
Git LFS file not shown
39 changes: 36 additions & 3 deletions assets/materials/swich_on.png.import
Git LFS file not shown
37 changes: 34 additions & 3 deletions assets/materials/switch_off.png.import
Git LFS file not shown
4 changes: 2 additions & 2 deletions export_presets.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[preset.0]

name="Android"
name="android-debug"
platform="Android"
runnable=true
dedicated_server=false
Expand Down Expand Up @@ -205,4 +205,4 @@ permissions/write_sync_settings=false
permissions/write_user_dictionary=false
package/show_in_android_tv=false
package/show_in_app_library=true
package/show_as_launcher_app=false
package/show_as_launcher_app=false
Loading

0 comments on commit 8d92ca7

Please sign in to comment.