Skip to content

Commit c37d7b3

Browse files
committed
Change release workflow to rename firmware file
1 parent 65cb21a commit c37d7b3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Upload Release Assets
1818
uses: shogo82148/actions-upload-release-asset@v1
1919
with:
20-
asset_path: "micropython/ports/rp2/build-SPARKFUN_XRP_CONTROLLER-LARGE_BINARY/firmware.uf2"
20+
asset_path: "micropython/ports/rp2/build-SPARKFUN_XRP_CONTROLLER-LARGE_BINARY/MICROPYTHON_OPENCV_SPARKFUN_XRP_CONTROLLER.uf2"
2121
github_token: ${{ secrets.GITHUB_TOKEN }}
2222
upload_url: ${{ github.event.release.upload_url }}
2323

build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,7 @@ function build_micropython_opencv {
173173

174174
# Build firmware
175175
make BOARD=SPARKFUN_XRP_CONTROLLER ${MAKEOPTS}
176+
177+
# Rename firmware file to identify it as the OpenCV build and which board it's for
178+
mv micropython/ports/rp2/build-SPARKFUN_XRP_CONTROLLER-LARGE_BINARY/firmware.uf2 micropython/ports/rp2/build-SPARKFUN_XRP_CONTROLLER-LARGE_BINARY/MICROPYTHON_OPENCV_SPARKFUN_XRP_CONTROLLER.uf2
176179
}

0 commit comments

Comments
 (0)