-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (30 loc) · 1.12 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Godot
run: |
wget https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_linux.x86_64.zip > /dev/null
unzip Godot_*-stable_linux.x86_64.zip
mv Godot_*-stable_linux.x86_64 godot
chmod +x godot
rm Godot_*-stable_linux.x86_64.zip
- name: Download export templates
run: |
wget https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_export_templates.tpz > /dev/null
mkdir -p ~/.local/share/godot/export_templates/
unzip Godot_*-stable_export_templates.tpz
mv templates/ ~/.local/share/godot/export_templates/4.3.stable/
rm Godot_*-stable_export_templates.tpz
- name: Create build folder
run: mkdir -p build/web
- name: Build
run: ./godot --headless --export-release "Web" ./project.godot
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: build-artifact
path: build/