Diffstat (limited to '.github/workflows/export.yml')
l---------.github/workflows/export.yml55
1 files changed, 16 insertions, 39 deletions
diff --git a/.github/workflows/export.yml b/.github/workflows/export.yml
index 1d64eab..a24ee36 120000
--- a/.github/workflows/export.yml
+++ b/.github/workflows/export.yml
@@ -1,45 +1,22 @@
-# Whenever a push is made to the master branch then run the job
+name: "export"
on:
+ workflow_dispatch:
push:
+ paths:
+ - "**.gd"
+ - "**.tscn"
+ - "**.import"
+ - "**.tres"
+ - "**.ttf"
+ - ".github/workflows/export.yml"
+ - "export_presets.cfg"
branches:
- main
jobs:
- # job id, can be anything
- export_game:
- # Always use ubuntu-latest for this action
- runs-on: ubuntu-latest
- # Job name, can be anything
- name: export
- steps:
- # Always include the checkout step so that
- # your project is available for Godot to export
- - name: checkout
- uses: actions/[email protected]
- - name: Set up JDK 8
- uses: actions/setup-java@v3
- with:
- java-version: '8'
- distribution: adopt
-
- - name: Setup Android SDK
- uses: android-actions/setup-android@v2
- # Ensure that you get the entire project history
- with:
- fetch-depth: 0
- - name: create keystore
- 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
- mv debug.keystore /tmp/debug.keystore
- - name: export game
- # Use latest version (see releases for all versions)
-
- uses: firebelley/[email protected]
- with:
- # Defining all the required inputs
- # I used the mono version of Godot in this example
- godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/3.4.2/Godot_v3.4.2-stable_linux_headless.64.zip
- godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/3.4.2/Godot_v3.4.2-stable_export_templates.tpz
- relative_project_path: ./
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ export:
+ uses: bend-n/godot-actions/.github/workflows/callable-export.yml@main
+ with:
+ export-name: 2048
+ image: ghcr.io/bend-n/godot-2d:4.1.1
+ platforms: "windows linux web android mac"