Hello,
I was trying to set up CI/CD with GitHub actions for a personal project. I noticed that the Godot CLI creates a new process for its exporting. This works quite well for local dev, but it makes it annoying to publish exported builds as pipeline artifacts. I had to manually wait for the export to finish by periodically checking for the executable’s existence, like so:
- name: Create Executable
run: |
mkdir -p build
godot --headless --path . --export-release "Windows Desktop" build/Riftwalkers.exe
interval=1000
intervals=60
while [ ! -f build/Riftwalkers.exe ] && [ $intervals -gt 0 ];
do
$intervals--;
sleep 1000;
done
shell: bash
- name: Upload as Artifact
uses: actions/upload-artifact@v4
with:
name: Riftwalkers
path: build/
if-no-files-found: error
I think there should be an option to wait for the build to finish within the command itself. Is this what other people are doing in their pipelines, or did I miss something?