Skip to content

Commit

Permalink
CI: Create the export folder if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriSizov committed Apr 30, 2024
1 parent 9588209 commit 60655ff
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/actions/export-godot-project/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,22 @@ outputs:
runs:
using: "composite"
steps:
- name: Import assets, scripts, extensions
shell: bash
continue-on-error: true
run: |
godot --headless --path ./example --editor --quit
- name: Export project (${{ inputs.preset }})
id: export-project-step
shell: bash
env:
EXPORT_OUTPUT_PATH: ./example/export/${{ inputs.platform }}/${{ inputs.arch }}
MKDIR_FLAGS: ${{ inputs.platform != "windows" && "-p" || "" }}
run: |
godot --headless --path ./example --editor --quit
echo "Creating the export output folder..."
mkdir ${{ env.MKDIR_FLAGS }} ${{ env.EXPORT_OUTPUT_PATH }}
echo "Exporting the project..."
godot --headless --path ./example --export-release "${{ inputs.preset }}" ${{ env.EXPORT_OUTPUT_PATH }}/${{ inputs.output }}
echo "export-path=${{ env.EXPORT_OUTPUT_PATH }}" >> "$GITHUB_OUTPUT"

0 comments on commit 60655ff

Please sign in to comment.