tools for exporting godot projects via Github Actions
add a pre export file
bendn 2023-04-15
parent 0207098 · commit 287aaf3
-rw-r--r--.github/actions/export/action.yml6
-rw-r--r--README.md2
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"
diff --git a/README.md b/README.md
index 4ed4a81..a238974 100644
--- a/README.md
+++ b/README.md
@@ -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.