Skip to content

Commit

Permalink
prepare release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Pashmfouroush <mark@markpash.me>
  • Loading branch information
markpash committed Nov 26, 2024
1 parent 6c893c4 commit b20c3c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-firmware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,24 @@ jobs:
python3 python3-distutils jq
- name: Build the Firmware
if: github.event_name != 'release'
run: |
cd src
bash build.bash ${GITHUB_SHA::6} ${{ matrix.profile }}
echo "release_version=${GITHUB_SHA::6}" >> build/RELEASE_VERSION
- name: Upload Build Artifacts as a Single Artifact
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
if: github.event_name != 'release'
with:
name: ${{ matrix.profile }}_${{ github.sha }}
path: src/build/*

- name: Build the Firmware (Release)
if: github.event_name == 'release'
run: |
cd src
bash build.bash ${{ github.event.release.tag_name }} ${{ matrix.profile }}
- name: Attach Artifacts to Release
uses: svenstaro/upload-release-action@v2
if: github.event_name == 'release'
Expand Down
4 changes: 2 additions & 2 deletions src/build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ for profile in $profiles; do
mv "$file" "$newfile"

done

cd ../

done
done

0 comments on commit b20c3c0

Please sign in to comment.