2026-03-02 15:18:21 +02:00
|
|
|
name: Build Game
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
push:
|
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
strategy:
|
|
|
|
|
fail-fast: false
|
|
|
|
|
matrix:
|
|
|
|
|
preset: ["Windows Desktop", "Linux"]
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
|
id: build
|
2026-03-02 15:26:43 +02:00
|
|
|
uses: https://github.com/mlm-games/godot-build-action
|
2026-03-02 15:18:21 +02:00
|
|
|
with:
|
|
|
|
|
EXPORT_PRESET_NAME: ${{ matrix.preset }}
|
|
|
|
|
GODOT_VER: "" # auto-detect latest stable 4.x
|
|
|
|
|
DEBUG_MODE: "false" # or "true"
|
|
|
|
|
GODOT_PREVIEW_BUILDS: "false" # set "true" to use preview builds
|
|
|
|
|
EXPORT_DIR: builds
|
|
|
|
|
|
|
|
|
|
- name: Upload builds
|
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
|
with:
|
|
|
|
|
name: ${{ matrix.preset }}-build
|
|
|
|
|
path: ${{ steps.build.outputs.build }}
|