From d91814032b0fb3ddbfb9a00fb1abf83de9ddd445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Mich=C3=A1lek?= Date: Wed, 17 Jul 2024 11:44:46 +0200 Subject: [PATCH] ci: rename artifact before upload --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 07e29e4..acfd815 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -72,11 +72,12 @@ jobs: path: ./artifacts merge-multiple: false - - name: Upload Release Assets + - name: Rename and Upload Release Assets run: | for file in ./artifacts/*/combined.bin; do base_name=$(basename $(dirname "$file")) - gh release upload ${{ needs.create-release.outputs.upload_url }} "$file" --clobber --name "graphical_bootloader_${base_name}.bin" + mv "$file" "./artifacts/graphical_bootloader_${base_name}.bin" + gh release upload ${{ needs.create-release.outputs.upload_url }} "./artifacts/graphical_bootloader_${base_name}.bin" --clobber done env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}