From f676a768870d6563ce30715efeba4d5cd8fed553 Mon Sep 17 00:00:00 2001 From: TVanteeffelen Date: Sat, 9 May 2026 01:23:27 -0400 Subject: [PATCH] Update .forgejo/workflows/godot-html5.yml --- .forgejo/workflows/godot-html5.yml | 42 +++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/godot-html5.yml b/.forgejo/workflows/godot-html5.yml index 5641dc3..3bdd520 100644 --- a/.forgejo/workflows/godot-html5.yml +++ b/.forgejo/workflows/godot-html5.yml @@ -1,4 +1,4 @@ -name: Build Godot HTML5 +name: Build and Deploy Godot HTML5 on: push: @@ -9,18 +9,48 @@ jobs: build: runs-on: docker - container: - image: barichello/godot-ci:4.2 - steps: + # --------------------------- + # 1. Checkout repository + # --------------------------- - name: Checkout repo uses: actions/checkout@v4 + # --------------------------- + # 2. Install dependencies + # --------------------------- + - name: Install tools + run: | + apt update + apt install -y wget unzip rsync + + # --------------------------- + # 3. Install Godot (headless CLI) + # --------------------------- + - name: Install Godot + run: | + wget https://downloads.tuxfamily.org/godotengine/4.6/Godot_v4.6-stable_linux.x86_64.zip + unzip Godot_v4.6-stable_linux.x86_64.zip + chmod +x Godot_v4.6-stable_linux.x86_64 + mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot + + # --------------------------- + # 4. Verify Godot is available + # --------------------------- + - name: Verify Godot + run: godot --version + + # --------------------------- + # 5. Build HTML5 export + # --------------------------- - name: Build HTML5 run: | mkdir -p build/html5 godot --headless --export-release "HTML5" build/html5/index.html - - name: Deploy to Nginx folder + # --------------------------- + # 6. Deploy to Nginx folder + # --------------------------- + - name: Deploy to server folder run: | - rsync -av build/html5/ /deploy/TheFlipSide \ No newline at end of file + rsync -av --delete build/html5/ /deploy/TheFlipSide \ No newline at end of file