Skip to content

Commit 6121b70

Browse files
committed
Added the workflow
1 parent 3c6b914 commit 6121b70

File tree

3 files changed

+198
-15
lines changed

3 files changed

+198
-15
lines changed

.github/workflows/godot-ci.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: "godot-ci export"
2+
on:
3+
push:
4+
branches:
5+
- main-(godot-4)
6+
7+
workflow_dispatch:
8+
inputs:
9+
create_release:
10+
description: 'Deploy a new release to Itch'
11+
default: 'true'
12+
13+
env:
14+
GODOT_VERSION: 4.4.1
15+
EXPORT_NAME: ${{vars.EXPORT_NAME}}
16+
PROJECT_PATH: .
17+
18+
jobs:
19+
export-windows:
20+
name: Windows Export
21+
runs-on: ubuntu-22.04
22+
container:
23+
image: barichello/godot-ci:4.4.1
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
with:
28+
lfs: true
29+
- name: Setup
30+
run: |
31+
mkdir -v -p ~/.local/share/godot/export_templates/
32+
mkdir -v -p ~/.config/
33+
mv /root/.config/godot ~/.config/godot
34+
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
35+
- name: Windows Build
36+
run: |
37+
mkdir -v -p build/windows
38+
EXPORT_DIR="$(readlink -f build)"
39+
cd $PROJECT_PATH
40+
godot --headless --verbose --export-release "Windows Desktop" "$EXPORT_DIR/windows/$EXPORT_NAME.zip"
41+
- name: Upload Artifact
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: windows
45+
path: build/windows
46+
- name: Butler Upload
47+
uses: yeslayla/butler-publish-itchio-action@master
48+
env:
49+
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }}
50+
CHANNEL: windows
51+
ITCH_GAME: ${{vars.ITCH_GAME}}
52+
ITCH_USER: ${{vars.ITCH_USER}}
53+
PACKAGE: build/windows
54+
55+
export-web:
56+
name: Web Export
57+
runs-on: ubuntu-22.04
58+
container:
59+
image: barichello/godot-ci:4.4.1
60+
steps:
61+
- name: Checkout
62+
uses: actions/checkout@v4
63+
with:
64+
lfs: true
65+
- name: Setup
66+
run: |
67+
mkdir -v -p ~/.local/share/godot/export_templates/
68+
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
69+
- name: Web Build
70+
run: |
71+
mkdir -v -p build/web
72+
EXPORT_DIR="$(readlink -f build)"
73+
cd $PROJECT_PATH
74+
godot --headless --verbose --export-release "Web" "$EXPORT_DIR/web/index.html"
75+
- name: Upload Artifact
76+
uses: actions/upload-artifact@v4
77+
with:
78+
name: web
79+
path: build/web
80+
- name: Butler Upload
81+
uses: yeslayla/butler-publish-itchio-action@master
82+
env:
83+
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }}
84+
CHANNEL: web
85+
ITCH_GAME: ${{vars.ITCH_GAME}}
86+
ITCH_USER: ${{vars.ITCH_USER}}
87+
PACKAGE: build/web

.gitignore

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
11
# Godot 4+ specific ignores
22
.godot/
3-
.vscode/
4-
Old/
5-
6-
# Godot-specific ignores
7-
.import/
8-
export.cfg
9-
export_presets.cfg
10-
11-
# Imported translations (automatically generated from CSV files)
12-
*.translation
13-
14-
# Mono-specific ignores
15-
.mono/
16-
data_*/
17-
mono_crash.*.json
3+
/android/
184
*.tmp

export_presets.cfg

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
[preset.0]
2+
3+
name="Web"
4+
platform="Web"
5+
runnable=true
6+
advanced_options=false
7+
dedicated_server=false
8+
custom_features=""
9+
export_filter="all_resources"
10+
include_filter=""
11+
exclude_filter=""
12+
export_path="../../__BUILDS__/Platformer/Godot4/TEST/index.html"
13+
patches=PackedStringArray()
14+
encryption_include_filters=""
15+
encryption_exclude_filters=""
16+
seed=0
17+
encrypt_pck=false
18+
encrypt_directory=false
19+
script_export_mode=2
20+
21+
[preset.0.options]
22+
23+
custom_template/debug=""
24+
custom_template/release=""
25+
variant/extensions_support=false
26+
variant/thread_support=false
27+
vram_texture_compression/for_desktop=true
28+
vram_texture_compression/for_mobile=false
29+
html/export_icon=true
30+
html/custom_html_shell=""
31+
html/head_include=""
32+
html/canvas_resize_policy=2
33+
html/focus_canvas_on_start=true
34+
html/experimental_virtual_keyboard=false
35+
progressive_web_app/enabled=false
36+
progressive_web_app/ensure_cross_origin_isolation_headers=true
37+
progressive_web_app/offline_page=""
38+
progressive_web_app/display=1
39+
progressive_web_app/orientation=0
40+
progressive_web_app/icon_144x144=""
41+
progressive_web_app/icon_180x180=""
42+
progressive_web_app/icon_512x512=""
43+
progressive_web_app/background_color=Color(0, 0, 0, 1)
44+
45+
[preset.1]
46+
47+
name="Windows Desktop"
48+
platform="Windows Desktop"
49+
runnable=true
50+
advanced_options=false
51+
dedicated_server=false
52+
custom_features=""
53+
export_filter="all_resources"
54+
include_filter=""
55+
exclude_filter=""
56+
export_path="../../__BUILDS__/Platformer/Godot4/Desktop/Platformer.exe"
57+
patches=PackedStringArray()
58+
encryption_include_filters=""
59+
encryption_exclude_filters=""
60+
seed=0
61+
encrypt_pck=false
62+
encrypt_directory=false
63+
script_export_mode=2
64+
65+
[preset.1.options]
66+
67+
custom_template/debug=""
68+
custom_template/release=""
69+
debug/export_console_wrapper=1
70+
binary_format/embed_pck=true
71+
texture_format/s3tc_bptc=true
72+
texture_format/etc2_astc=false
73+
binary_format/architecture="x86_64"
74+
codesign/enable=false
75+
codesign/timestamp=true
76+
codesign/timestamp_server_url=""
77+
codesign/digest_algorithm=1
78+
codesign/description=""
79+
codesign/custom_options=PackedStringArray()
80+
application/modify_resources=true
81+
application/icon="res://icon.ico"
82+
application/console_wrapper_icon=""
83+
application/icon_interpolation=4
84+
application/file_version=""
85+
application/product_version=""
86+
application/company_name="Sparrowworks"
87+
application/product_name="Alien Platformer"
88+
application/file_description=""
89+
application/copyright=""
90+
application/trademarks=""
91+
application/export_angle=0
92+
application/export_d3d12=0
93+
application/d3d12_agility_sdk_multiarch=true
94+
ssh_remote_deploy/enabled=false
95+
ssh_remote_deploy/host="user@host_ip"
96+
ssh_remote_deploy/port="22"
97+
ssh_remote_deploy/extra_args_ssh=""
98+
ssh_remote_deploy/extra_args_scp=""
99+
ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}'
100+
$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}'
101+
$trigger = New-ScheduledTaskTrigger -Once -At 00:00
102+
$settings = New-ScheduledTaskSettingsSet
103+
$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings
104+
Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true
105+
Start-ScheduledTask -TaskName godot_remote_debug
106+
while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 }
107+
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue"
108+
ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue
109+
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue
110+
Remove-Item -Recurse -Force '{temp_dir}'"

0 commit comments

Comments
 (0)