add workflow
This commit is contained in:
parent
4a2219500d
commit
aff1d8a80f
1 changed files with 33 additions and 0 deletions
33
.forgejo/workflows/release.yaml
Normal file
33
.forgejo/workflows/release.yaml
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
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
|
||||||
|
uses: mlm-games/godot-build-action@v1
|
||||||
|
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 }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue