Skip to content

Commit

Permalink
renaming all files to correct semver version
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdbreemen committed Mar 17, 2024
1 parent cd08390 commit d6c6ddc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ runs:
- id: semver
run: cat version.h | sed -n '/^#define _SEMVER_FULL.*$/s/^#.*"\(.*\)"$/semver=\1/p' >> $GITHUB_OUTPUT
shell: bash
- if: rename
run: |
mv build/*.bin build/*-${{steps.semver.outputs.semver}}.bin
mv build/**/*.bin build/*-${{steps.semver.outputs.semver}}.bin
mv build/**/*.elf build/*-${{steps.semver.outputs.semver}}.elf
shell: bash
- id: upload
uses: actions/upload-artifact@v4
with:
name: OTGW-firmware-${{steps.semver.outputs.semver}}
path: |
build/**/*-${{steps.semver.outputs.semver}}.bin
build/**/*-${{steps.semver.outputs.semver}}.elf
build/*-${{steps.semver.outputs.semver}}.bin
build/**/*.bin
build/**/*.elf
build/*.bin

0 comments on commit d6c6ddc

Please sign in to comment.