Godot CLI and CI/CD

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?

I can’t replicate this what platform are you running on and what build configuration? For me it blocks execution just fine

GitHub Actions on a windows-latest machine with Godot 4.7.2. I also see this behavior when I run it on my local. I haven’t tried it with ubuntu-latest or a different version of Godot, as I was trying to mirror my local setup for now.

I’d suggest running on Ubuntu, it’s more designed to be used from console, or launch the console wrapper instead for Windows