fix action
This commit is contained in:
parent
6751786488
commit
ee8e5a9231
@ -8,7 +8,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
GODOT_VERSION: 4.4-stable
|
GODOT_VERSION: 4.4-stable
|
||||||
PROJECT_NAME: batrix
|
PROJECT_NAME: batrix
|
||||||
EXPORT_DIR: builds
|
EXPORT_DIR: build
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
godot:
|
godot:
|
||||||
@ -34,7 +34,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.local/share/godot/export_templates/$(echo ${GODOT_VERSION} | sed 's/[^a-zA-Z0-9_]/./g')
|
mkdir -p ~/.local/share/godot/export_templates/$(echo ${GODOT_VERSION} | sed 's/[^a-zA-Z0-9_]/./g')
|
||||||
mkdir -p ~/godot-binary
|
mkdir -p ~/godot-binary
|
||||||
|
|
||||||
- name: Download Godot
|
- name: Download Godot
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -53,17 +53,15 @@ jobs:
|
|||||||
unzip -q ~/templates.tpz -d ~/.local/share/godot/export_templates/temp
|
unzip -q ~/templates.tpz -d ~/.local/share/godot/export_templates/temp
|
||||||
mkdir -p ~/.local/share/godot/export_templates/$(echo ${GODOT_VERSION} | sed 's/[^a-zA-Z0-9_]/./g')
|
mkdir -p ~/.local/share/godot/export_templates/$(echo ${GODOT_VERSION} | sed 's/[^a-zA-Z0-9_]/./g')
|
||||||
mv ~/.local/share/godot/export_templates/temp/templates/* ~/.local/share/godot/export_templates/$(echo ${GODOT_VERSION} | sed 's/[^a-zA-Z0-9_]/./g')/
|
mv ~/.local/share/godot/export_templates/temp/templates/* ~/.local/share/godot/export_templates/$(echo ${GODOT_VERSION} | sed 's/[^a-zA-Z0-9_]/./g')/
|
||||||
|
|
||||||
- name: Export project
|
- name: Export project
|
||||||
id: export
|
id: export
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
BUILD_PATH="${GITHUB_WORKSPACE}/${EXPORT_DIR}/"
|
|
||||||
echo "build=${BUILD_PATH}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
echo "Building for ${{ matrix.preset }}"
|
echo "Building for ${{ matrix.preset }}"
|
||||||
cd "${GITHUB_WORKSPACE}"
|
cd "${GITHUB_WORKSPACE}"
|
||||||
~/godot-binary/godot --headless --export-release "${{ matrix.preset }}"
|
mkdir -p ${EXPORT_DIR}/${{ matrix.preset }}
|
||||||
|
~/godot-binary/godot --export-release "${{ matrix.preset }}" --headless ${EXPORT_DIR}/${{ matrix.preset }}/${{ matrix.export_file }}
|
||||||
echo "Build Done"
|
echo "Build Done"
|
||||||
|
|
||||||
- name: Zip
|
- name: Zip
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user