GH: Rename Linux & Windows templates before uploading artifact
This commit is contained in:
parent
75a7883184
commit
5d0d2660f7
|
@ -177,6 +177,15 @@ jobs:
|
||||||
chmod +x ./bin/godot.*
|
chmod +x ./bin/godot.*
|
||||||
mkdir -p ${{env.OUTDIR}}
|
mkdir -p ${{env.OUTDIR}}
|
||||||
mv ./bin/godot.* ${{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
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
|
@ -169,8 +169,19 @@ jobs:
|
||||||
OUTDIR: ${{ startsWith(matrix.target, 'template') && 'out/templates' || 'out/' }}
|
OUTDIR: ${{ startsWith(matrix.target, 'template') && 'out/templates' || 'out/' }}
|
||||||
run: |
|
run: |
|
||||||
rm -f bin/*.{exp,lib,pdb}
|
rm -f bin/*.{exp,lib,pdb}
|
||||||
mkdir -p out/templates/
|
mkdir -p ${{env.OUTDIR}}
|
||||||
mv bin/* ${{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
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
Loading…
Reference in New Issue