name: "test" on: push: branches: - stable image: barichello/godot-ci:4.0.2 cache: key: import-assets paths: - .godot/imported/ stages: - import-assets - export - deploy variables: EXPORT_NAME: test-project # Open the editor to import assets in case the cache was empty or outdated import-assets: stage: import-assets script: - godot -v -e --quit --headless linux: stage: export script: - mkdir -v -p build/linux - cd $EXPORT_NAME - godot -v --export-release --headless "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64 artifacts: name: $EXPORT_NAME-$CI_JOB_NAME paths: - build/linux windows: stage: export script: - mkdir -v -p build/windows - cd $EXPORT_NAME - godot -v --export-release --headless "Windows Desktop" ../build/windows/$EXPORT_NAME.exe artifacts: name: $EXPORT_NAME-$CI_JOB_NAME paths: - build/windows