tools for exporting godot projects via Github Actions
Diffstat (limited to '.github/actions/export/action.yml')
-rw-r--r--.github/actions/export/action.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/actions/export/action.yml b/.github/actions/export/action.yml
index 6627e2a..0432fef 100644
--- a/.github/actions/export/action.yml
+++ b/.github/actions/export/action.yml
@@ -30,6 +30,7 @@ runs:
- name: Build
run: |
+ cd "$PROJECT_PATH"
p="${{ inputs.platform }}"
echo "::group::${p^} Build"
export="--export"
@@ -38,7 +39,7 @@ runs:
mkdir -vp build/${{ inputs.platform }}
n="${{ env.NAME }}"
[[ -n "${{ inputs.name }}" ]] && n="${{ inputs.name }}"
- godot -v --headless --path "${{ env.PROJECT_PATH }}" "$export" "${{ steps.n.outputs.export-name }}" "./build/${{ inputs.platform }}/$n.${{ inputs.extension }}"
+ godot -v --headless "$export" "${{ steps.n.outputs.export-name }}" "./build/${{ inputs.platform }}/$n.${{ inputs.extension }}"
echo "::endgroup::"
if [[ -f .github/post_export ]]; then
@@ -52,5 +53,5 @@ runs:
- uses: actions/upload-artifact@v3
with:
name: ${{ inputs.platform }}
- path: build/${{ inputs.platform}}
+ path: ${{ env.PROJECT_PATH }}/build/${{ inputs.platform }}
if-no-files-found: error