Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
36ad631216
1 changed files with 15 additions and 2 deletions
|
|
@ -40,17 +40,30 @@ jobs:
|
|||
- name: Verify Godot
|
||||
run: godot --version
|
||||
|
||||
- name: Install export templates
|
||||
run: |
|
||||
VERSION=4.6
|
||||
|
||||
mkdir -p ~/.local/share/godot/export_templates/${VERSION}.stable
|
||||
|
||||
wget -O templates.tpz \
|
||||
https://github.com/godotengine/godot/releases/download/${VERSION}-stable/Godot_v${VERSION}-stable_export_templates.tpz
|
||||
|
||||
unzip templates.tpz -d templates_tmp
|
||||
|
||||
cp -r templates_tmp/templates/* ~/.local/share/godot/export_templates/${VERSION}.stable/
|
||||
|
||||
# ---------------------------
|
||||
# 5. Build HTML5 export
|
||||
# ---------------------------
|
||||
- name: Build HTML5
|
||||
run: |
|
||||
mkdir -p build/html5
|
||||
godot --headless --export-release "HTML5" build/html5/index.html
|
||||
godot --headless --export-release "Web" build/html5/index.html
|
||||
|
||||
# ---------------------------
|
||||
# 6. Deploy to Nginx folder
|
||||
# ---------------------------
|
||||
- name: Deploy to server folder
|
||||
run: |
|
||||
rsync -av --delete build/html5/ /deploy/TheFlipSide
|
||||
rsync -av --delete build/html5/ /deploy
|
||||
Loading…
Add table
Reference in a new issue