Update .forgejo/workflows/godot-html5.yml
Some checks failed
Build and Deploy Godot HTML5 / build (push) Has been cancelled
Test Runner / test (push) Successful in 3s

This commit is contained in:
Tanner Van Teeffelen 2026-05-09 01:23:27 -04:00
parent abfb0dd818
commit f676a76887

View file

@ -1,4 +1,4 @@
name: Build Godot HTML5 name: Build and Deploy Godot HTML5
on: on:
push: push:
@ -9,18 +9,48 @@ jobs:
build: build:
runs-on: docker runs-on: docker
container:
image: barichello/godot-ci:4.2
steps: steps:
# ---------------------------
# 1. Checkout repository
# ---------------------------
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v4 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 - name: Build HTML5
run: | run: |
mkdir -p build/html5 mkdir -p build/html5
godot --headless --export-release "HTML5" build/html5/index.html 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: | run: |
rsync -av build/html5/ /deploy/TheFlipSide rsync -av --delete build/html5/ /deploy/TheFlipSide