GH: Rename Linux & Windows templates before uploading artifact

This commit is contained in:
Serhii Snitsaruk 2023-09-14 09:36:36 +02:00
parent 75a7883184
commit 5d0d2660f7
2 changed files with 21 additions and 1 deletions

View File

@ -177,6 +177,15 @@ jobs:
chmod +x ./bin/godot.*
mkdir -p ${{env.OUTDIR}}
mv ./bin/godot.* ${{env.OUTDIR}}
ls -R out/
- name: Rename templates
if: startsWith(matrix.target, 'template')
env:
BUILD_TYPE: ${{ endsWith(matrix.target, 'release') && 'release' || 'debug' }}
run: |
mv out/templates/${BIN} out/templates/linux_${BUILD_TYPE}.${{matrix.arch}}
ls -R out/
- name: Upload artifact
uses: actions/upload-artifact@v3

View File

@ -169,8 +169,19 @@ jobs:
OUTDIR: ${{ startsWith(matrix.target, 'template') && 'out/templates' || 'out/' }}
run: |
rm -f bin/*.{exp,lib,pdb}
mkdir -p out/templates/
mkdir -p ${{env.OUTDIR}}
mv bin/* ${{env.OUTDIR}}
ls -R out/
- name: Rename templates
if: startsWith(matrix.target, 'template')
shell: bash
env:
BUILD_TYPE: ${{ endsWith(matrix.target, 'release') && 'release' || 'debug' }}
run: |
mv out/templates/${BIN}.exe out/templates/windows_${BUILD_TYPE}_${{matrix.arch}}.exe
mv out/templates/${BIN}.console.exe out/templates/windows_${BUILD_TYPE}_${{matrix.arch}}_console.exe
ls -R out/
- name: Upload artifact
uses: actions/upload-artifact@v3