tools for exporting godot projects via Github Actions
Diffstat (limited to '.github/actions/setup-godot/action.yml')
| -rw-r--r-- | .github/actions/setup-godot/action.yml | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/.github/actions/setup-godot/action.yml b/.github/actions/setup-godot/action.yml index 6c0b3f9..e37d948 100644 --- a/.github/actions/setup-godot/action.yml +++ b/.github/actions/setup-godot/action.yml @@ -27,12 +27,22 @@ runs: - name: Setup godot run: | echo "::group::Setup godot" - git config --global --add safe.directory $(pwd) - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" > version - mkdir -v -p ~/.local/share/godot/templates + + # config + mkdir -p ~/.config/godot/ + mv /root/.config/godot/editor_settings-3.tres ~/.config/godot/editor_settings-3.tres + + # create version label thing + git config --global --add safe.directory "$(pwd)" && printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" > version + + # templates [[ -z $RELEASE ]] && RELEASE=stable - mv /root/.local/share/godot/templates/${GODOT_VERSION}.${RELEASE} ~/.local/share/godot/templates/${GODOT_VERSION}.${RELEASE} - ls ~/.local/share/godot/templates/${GODOT_VERSION}.${RELEASE} | tr '\n' ' ' + TEMPLATES_PATH=".local/share/godot/templates/${GODOT_VERSION}.${RELEASE}" + mkdir -p "${HOME}/${TEMPLATES_PATH}" + mv "/root/${TEMPLATES_PATH}/"* "${HOME}/${TEMPLATES_PATH}" + ls "${HOME}/${TEMPLATES_PATH}"| tr '\n' ' ' + + # gpm if [[ -f godot.package ]]; then [[ ! -d addons ]] && mkdir addons git clone --depth 1 https://github.com/you-win/godot-package-manager |