tools for exporting godot projects via Github Actions
add a pre export file
| -rw-r--r-- | .github/actions/export/action.yml | 6 | ||||
| -rw-r--r-- | README.md | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/.github/actions/export/action.yml b/.github/actions/export/action.yml index 87e0b57..3d5f892 100644 --- a/.github/actions/export/action.yml +++ b/.github/actions/export/action.yml @@ -30,6 +30,12 @@ runs: - name: Build run: | + if [[ -f .github/pre_export ]]; then + echo "::group::Run pre export script" + chmod +x .github/pre_export + ./.github/pre_export ${{ inputs.platform }} + echo "::endgroup::" + fi cd "$PROJECT_PATH" p="${{ inputs.platform }}" echo "::group::${p^} Build" @@ -78,3 +78,5 @@ Bash example: #!/bin/bash [[ $1 == "web" ]] && wget -nv "example.org" -O build/web/example.html ``` + +A `pre_export` file is also supported. |