Skip to content

Commit

Permalink
Updated: Github-Action, Release binaries workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SquadQuiz committed Apr 23, 2024
1 parent 21260b7 commit 00a095d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 00a095d

Please sign in to comment.