From 00a095dec35809d2470747a31c953a82386841fa Mon Sep 17 00:00:00 2001 From: SquadQuiz <amornsakstp6@gmail.com> Date: Tue, 23 Apr 2024 10:36:11 +0700 Subject: [PATCH] Updated: Github-Action, Release binaries workflow --- .github/workflows/release_workflow.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_workflow.yaml b/.github/workflows/release_workflow.yaml index c75adaf..87fca1a 100644 --- a/.github/workflows/release_workflow.yaml +++ b/.github/workflows/release_workflow.yaml @@ -32,11 +32,15 @@ jobs: working-directory: ${{github.workspace}}/build run: ctest -C ${{env.BUILD_TYPE}} + - name: Extract tag number + id: extract_tag + run: echo "::set-output name=TAG_NUMBER::$(basename ${{ github.ref }})" + - name: Upload binaries to release uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ${{github.workspace}}/build/*.{elf,hex,bin} + file: ${{github.workspace}}/build/v_${{ steps.extract_tag.outputs.TAG_NUMBER }}.*.{elf,hex,bin} tag: ${{ github.ref }} overwrite: true file_glob: true