tools for exporting godot projects via Github Actions
add information
bendn 2022-08-29
parent e4421e9 · commit 75959d6
-rw-r--r--.github/FUNDING.yml1
-rw-r--r--LICENSE21
-rw-r--r--README.md133
3 files changed, 155 insertions, 0 deletions
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 0000000..1bfbcab
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1 @@
+ko_fi: bendn
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..9a9763e
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 bendn
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..9223d5e
--- /dev/null
+++ b/README.md
@@ -0,0 +1,133 @@
+# godot-actions
+
+[![license](https://img.shields.io/badge/License-MIT-blue?style=for-the-badge)](https://github.com/bend-n/godot-actions/blob/main/LICENSE "License")
+[![version](https://img.shields.io/badge/3.5>3.x-blue?logo=godot-engine&logoColor=white&label=godot&style=for-the-badge)](https://godotengine.org)
+<a href='https://ko-fi.com/bendn' title='Buy me a coffee' target='_blank'><img height='28' src='https://storage.ko-fi.com/cdn/brandasset/kofi_button_red.png' alt='Buy me a coffee'> </a>
+
+Github Actions composite action repository.
+
+## How to use
+
+<details open>
+<summary>Snippet</summary>
+
+```yaml
+build-windows:
+ runs-on: ubuntu-latest
+ container:
+ image: ghcr.io/bend-n/godot-2d:3.5
+ name: Build windows
+ steps:
+ - name: Build
+ uses: bend-n/godot-actions/.github/actions/export-windows@main
+ env:
+ GODOT_VERSION: 3.5
+ NAME: ${{ github.event.repository.name }}
+```
+
+</details>
+
+<details>
+<summary>Full example</summary>
+
+> **Note**
+> This is a copy of [godot-template/.github/workflows/export.yml](https://github.com/bend-n/godot-template/blob/99d8c0c9b376456b6ded812b47b7a8d3b64e15d9/.github/workflows/export.yml)
+
+```yaml
+name: "export"
+on:
+ workflow_dispatch:
+ push:
+ paths:
+ - "**.gd"
+ - "**.tscn"
+ - "**.import"
+ - "**.tres"
+ - "**.ttf"
+ - ".github/workflows/export.yml"
+ - "export_presets.cfg"
+ branches:
+ - main
+
+env:
+ GODOT_VERSION: 3.5
+ NAME: ${{ github.event.repository.name }}
+
+jobs:
+ export:
+ runs-on: ubuntu-latest
+ container:
+ image: ghcr.io/bend-n/godot-2d:3.5
+ name: ${{ matrix.name }}
+ strategy:
+ matrix:
+ include:
+ - name: Windows export
+ platform: windows
+
+ - name: Linux export
+ platform: linux
+
+ - name: Mac export
+ platform: mac
+
+ - name: Web export
+ platform: web
+
+ - name: Android export
+ platform: android
+
+ steps:
+ - name: Build (Windows)
+ if: matrix.platform == 'windows'
+ uses: bend-n/godot-actions/.github/actions/export-windows@main
+
+ - name: Build (Linux)
+ if: matrix.platform == 'linux'
+ uses: bend-n/godot-actions/.github/actions/export-linux@main
+
+ - name: Build (Mac)
+ if: matrix.platform == 'mac'
+ uses: bend-n/godot-actions/.github/actions/export-mac@main
+
+ - name: Build (Web)
+ if: matrix.platform == 'web'
+ uses: bend-n/godot-actions/.github/actions/export-web@main
+
+ - name: Build (Android)
+ if: matrix.platform == 'android'
+ uses: bend-n/godot-actions/.github/actions/export-android@main
+ with:
+ android-keystore-base64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
+ android-password: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
+
+ push-itch:
+ needs: [export]
+ name: Push to itch.io
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Check for api key
+ id: secret
+ run: echo '::set-output name=secret::${{ secrets.BUTLER_CREDENTIALS }}'
+
+ - name: Push
+ if: steps.secret.outputs.secret
+ uses: bend-n/godot-actions/.github/actions/itch-push@main
+ with:
+ api-key: ${{ secrets.BUTLER_CREDENTIALS }}
+```
+
+</details>
+
+### Users
+
+[bendn/chess](https://github.com/bend-n/chess)
+[bendn/tetris](https://github.com/bend-n/tetris)
+[bendn/spaceshooty](https://github.com/bend-n/tetris)
+[bendn/remap](https://github.com/bend-n/remap)
+[bendn/latex-bot](https://github.com/bend-n/latex-bot)
+[bendn/swipe-detector](https://github.com/bend-n/swipe-detector)
+[bendn/code-image](https://github.com/bend-n/code-image)
+[bendn/gd-eval](https://github.com/bend-n/gd-eval)
+[bendn/sokoban](https://github.com/bend-n/sokoban)
+[bendn/godot-template](https://github.com/bend-n/godot-template)