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