Adetonics/.forgejo/workflows/release.yaml

68 lines
2.2 KiB
YAML
Raw Normal View History

2026-03-02 15:37:38 +02:00
name: "godot-ci export"
2026-03-02 15:40:39 +02:00
on: push
# NOTE: If your `project.godot` is at the repository root, set `PROJECT_PATH` below to ".".
2026-03-02 15:18:21 +02:00
2026-03-02 15:37:38 +02:00
env:
GODOT_VERSION: 4.6.1
EXPORT_NAME: adatonic
2026-03-02 15:40:39 +02:00
PROJECT_PATH: .
2026-03-02 15:37:38 +02:00
2026-03-02 15:18:21 +02:00
jobs:
2026-03-02 15:37:38 +02:00
export-windows:
name: Windows Export
2026-03-02 15:42:00 +02:00
runs-on: ubuntu-latest # Use 24.04 with godot 4
2026-03-02 15:37:38 +02:00
container:
2026-03-02 15:45:36 +02:00
image: barichello/godot-ci:mono-4.6.1
2026-03-02 15:18:21 +02:00
steps:
2026-03-02 15:55:15 +02:00
- name: apt
run: apt-get update && apt-get install -y nodejs npm
2026-03-02 15:37:38 +02:00
- name: Checkout
2026-03-02 15:40:39 +02:00
uses: actions/checkout@v4
with:
lfs: true
2026-03-02 15:37:38 +02:00
- name: Setup
run: |
2026-03-02 15:40:39 +02:00
mkdir -v -p ~/.local/share/godot/export_templates/
mkdir -v -p ~/.config/
mv /root/.config/godot ~/.config/godot
2026-03-02 15:57:56 +02:00
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable.mono ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable.mono
2026-03-02 15:37:38 +02:00
- name: Windows Build
2026-03-02 15:40:39 +02:00
run: |
mkdir -v -p build/windows
EXPORT_DIR="$(readlink -f build)"
cd $PROJECT_PATH
godot --headless --verbose --export-release "Windows Desktop" "$EXPORT_DIR/windows/$EXPORT_NAME.exe"
2026-03-02 15:37:38 +02:00
- name: Upload Artifact
2026-03-02 15:40:39 +02:00
uses: actions/upload-artifact@v4
2026-03-02 15:18:21 +02:00
with:
2026-03-02 15:37:38 +02:00
name: windows
2026-03-02 15:40:39 +02:00
path: build/windows
2026-03-02 15:18:21 +02:00
2026-03-02 15:37:38 +02:00
export-linux:
name: Linux Export
2026-03-02 15:42:00 +02:00
runs-on: ubuntu-latest # Use 24.04 with godot 4
2026-03-02 15:37:38 +02:00
container:
2026-03-02 15:45:36 +02:00
image: barichello/godot-ci:mono-4.6.1
2026-03-02 15:37:38 +02:00
steps:
2026-03-02 15:55:15 +02:00
- name: apt
run: apt-get update && apt-get install -y nodejs npm
2026-03-02 15:37:38 +02:00
- name: Checkout
2026-03-02 15:40:39 +02:00
uses: actions/checkout@v4
with:
lfs: true
2026-03-02 15:37:38 +02:00
- name: Setup
run: |
2026-03-02 15:40:39 +02:00
mkdir -v -p ~/.local/share/godot/export_templates/
2026-03-02 15:57:56 +02:00
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable.mono ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable.mono
2026-03-02 15:37:38 +02:00
- name: Linux Build
2026-03-02 15:40:39 +02:00
run: |
mkdir -v -p build/linux
EXPORT_DIR="$(readlink -f build)"
cd $PROJECT_PATH
godot --headless --verbose --export-release "Linux" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64"
2026-03-02 15:37:38 +02:00
- name: Upload Artifact
2026-03-02 15:40:39 +02:00
uses: actions/upload-artifact@v4
2026-03-02 15:18:21 +02:00
with:
2026-03-02 15:37:38 +02:00
name: linux
2026-03-02 15:40:39 +02:00
path: build/linux