|
1 | | -name: Release SmartFuseBox Firmware |
| 1 | +name: Release PowerControlHub Firmware |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
@@ -43,29 +43,29 @@ jobs: |
43 | 43 | VERSION="${TAG#v}" |
44 | 44 | IFS='.' read -r MAJOR MINOR PATCH BUILD <<< "$VERSION" |
45 | 45 |
|
46 | | - printf "#pragma once\n#include <Arduino.h>\n\n// Generated by CI from tag %s - do not edit manually.\nconstexpr uint8_t FirmwareMajor = %s;\nconstexpr uint8_t FirmwareMinor = %s;\nconstexpr uint8_t FirmwarePatch = %s;\nconstexpr uint8_t FirmwareBuild = %s;\n" "$TAG" "$MAJOR" "$MINOR" "$PATCH" "$BUILD" > SmartFuseBox/FirmwareVersion.h |
| 46 | + printf "#pragma once\n#include <Arduino.h>\n\n// Generated by CI from tag %s - do not edit manually.\nconstexpr uint8_t FirmwareMajor = %s;\nconstexpr uint8_t FirmwareMinor = %s;\nconstexpr uint8_t FirmwarePatch = %s;\nconstexpr uint8_t FirmwareBuild = %s;\n" "$TAG" "$MAJOR" "$MINOR" "$PATCH" "$BUILD" > PowerControlHub/FirmwareVersion.h |
47 | 47 |
|
48 | 48 | - name: Compile ESP32 firmware |
49 | 49 | run: | |
50 | 50 | arduino-cli compile \ |
51 | 51 | --fqbn esp32:esp32:esp32 \ |
52 | | - --output-dir SmartFuseBox/build/esp32 \ |
53 | | - SmartFuseBox |
| 52 | + --output-dir PowerControlHub/build/esp32 \ |
| 53 | + PowerControlHub |
54 | 54 |
|
55 | 55 | - name: Rename and checksum ESP32 firmware |
56 | 56 | run: | |
57 | 57 | TAG="${GITHUB_REF#refs/tags/}" |
58 | | - SRC="SmartFuseBox/build/esp32/SmartFuseBox.ino.bin" |
59 | | - DEST="SmartFuseBox-esp32-${TAG}.bin" |
| 58 | + SRC="PowerControlHub/build/esp32/PowerControlHub.ino.bin" |
| 59 | + DEST="PowerControlHub-esp32-${TAG}.bin" |
60 | 60 | cp "$SRC" "$DEST" |
61 | | - sha256sum "$DEST" | awk '{print $1}' > "SmartFuseBox-esp32-${TAG}.sha256" |
| 61 | + sha256sum "$DEST" | awk '{print $1}' > "PowerControlHub-esp32-${TAG}.sha256" |
62 | 62 |
|
63 | 63 | - name: Upload ESP32 firmware to GitHub Release |
64 | 64 | uses: softprops/action-gh-release@v2 |
65 | 65 | with: |
66 | 66 | files: | |
67 | | - SmartFuseBox-esp32-${{ github.ref_name }}.bin |
68 | | - SmartFuseBox-esp32-${{ github.ref_name }}.sha256 |
| 67 | + PowerControlHub-esp32-${{ github.ref_name }}.bin |
| 68 | + PowerControlHub-esp32-${{ github.ref_name }}.sha256 |
69 | 69 | env: |
70 | 70 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
71 | 71 |
|
@@ -102,28 +102,28 @@ jobs: |
102 | 102 | VERSION="${TAG#v}" |
103 | 103 | IFS='.' read -r MAJOR MINOR PATCH BUILD <<< "$VERSION" |
104 | 104 |
|
105 | | - printf "#pragma once\n#include <Arduino.h>\n\n// Generated by CI from tag %s - do not edit manually.\nconstexpr uint8_t FirmwareMajor = %s;\nconstexpr uint8_t FirmwareMinor = %s;\nconstexpr uint8_t FirmwarePatch = %s;\nconstexpr uint8_t FirmwareBuild = %s;\n" "$TAG" "$MAJOR" "$MINOR" "$PATCH" "$BUILD" > SmartFuseBox/FirmwareVersion.h |
| 105 | + printf "#pragma once\n#include <Arduino.h>\n\n// Generated by CI from tag %s - do not edit manually.\nconstexpr uint8_t FirmwareMajor = %s;\nconstexpr uint8_t FirmwareMinor = %s;\nconstexpr uint8_t FirmwarePatch = %s;\nconstexpr uint8_t FirmwareBuild = %s;\n" "$TAG" "$MAJOR" "$MINOR" "$PATCH" "$BUILD" > PowerControlHub/FirmwareVersion.h |
106 | 106 |
|
107 | 107 | - name: Compile ESP32-S3 firmware |
108 | 108 | run: | |
109 | 109 | arduino-cli compile \ |
110 | 110 | --fqbn esp32:esp32:esp32s3 \ |
111 | | - --output-dir SmartFuseBox/build/esp32s3 \ |
112 | | - SmartFuseBox |
| 111 | + --output-dir PowerControlHub/build/esp32s3 \ |
| 112 | + PowerControlHub |
113 | 113 |
|
114 | 114 | - name: Rename and checksum ESP32-S3 firmware |
115 | 115 | run: | |
116 | 116 | TAG="${GITHUB_REF#refs/tags/}" |
117 | | - SRC="SmartFuseBox/build/esp32s3/SmartFuseBox.ino.bin" |
118 | | - DEST="SmartFuseBox-esp32s3-${TAG}.bin" |
| 117 | + SRC="PowerControlHub/build/esp32s3/PowerControlHub.ino.bin" |
| 118 | + DEST="PowerControlHub-esp32s3-${TAG}.bin" |
119 | 119 | cp "$SRC" "$DEST" |
120 | | - sha256sum "$DEST" | awk '{print $1}' > "SmartFuseBox-esp32s3-${TAG}.sha256" |
| 120 | + sha256sum "$DEST" | awk '{print $1}' > "PowerControlHub-esp32s3-${TAG}.sha256" |
121 | 121 |
|
122 | 122 | - name: Upload ESP32-S3 firmware to GitHub Release |
123 | 123 | uses: softprops/action-gh-release@v2 |
124 | 124 | with: |
125 | 125 | files: | |
126 | | - SmartFuseBox-esp32s3-${{ github.ref_name }}.bin |
127 | | - SmartFuseBox-esp32s3-${{ github.ref_name }}.sha256 |
| 126 | + PowerControlHub-esp32s3-${{ github.ref_name }}.bin |
| 127 | + PowerControlHub-esp32s3-${{ github.ref_name }}.sha256 |
128 | 128 | env: |
129 | 129 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments