From 5d0d2660f7d7bf395251c91fbad32ef83c67e3b4 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Thu, 14 Sep 2023 09:36:36 +0200 Subject: [PATCH] GH: Rename Linux & Windows templates before uploading artifact --- .github/workflows/linux.yml | 9 +++++++++ .github/workflows/windows.yml | 13 ++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index bbb4e43..b6591ee 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index d3aeb07..77382c7 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -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