Adetonics/.forgejo/workflows/release.yaml

64 lines
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:40:39 +02:00
runs-on: ubuntu-24.04 # Use 24.04 with godot 4
2026-03-02 15:37:38 +02:00
container:
2026-03-02 15:40:39 +02:00
image: abarichello/godot-ci@4.6.1-stable
2026-03-02 15:18:21 +02:00
steps:
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
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
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:40:39 +02:00
runs-on: ubuntu-24.04 # Use 24.04 with godot 4
2026-03-02 15:37:38 +02:00
container:
2026-03-02 15:40:39 +02:00
image: abarichello/godot-ci@4.6.1-stable
2026-03-02 15:37:38 +02:00
steps:
- 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/
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
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