Skip to content

Commit 97ffcd2

Browse files
committed
Update workflow
1 parent 3f00b95 commit 97ffcd2

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/compile-rc.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
env:
88
FILENAME_PREFIX: RTK_Surveyor_Firmware_
99
RC_PREFIX: RC-
10-
VERSION: 3.1
10+
VERSION_MAJOR: 3
11+
VERSION_MINOR: 1
1112
POINTPERFECT_TOKEN: ${{ secrets.POINTPERFECT_TOKEN }}
1213

1314
jobs:
@@ -98,7 +99,7 @@ jobs:
9899
path: RTK-RC-Firmware.json
99100
write-mode: overwrite
100101
contents: |
101-
{"Configurations": [{"Version":"${{ env.VERSION }}-${{ steps.dateNoScores.outputs.dateNoScores }}", "URL":"https://raw.githubusercontent.com/sparkfun/SparkFun_RTK_Firmware_Binaries/main/${{ env.FILENAME_PREFIX }}${{ env.RC_PREFIX }}${{ steps.date.outputs.date }}.bin"}]}
102+
{"Configurations": [{"Version":"${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}-${{ steps.dateNoScores.outputs.dateNoScores }}", "URL":"https://raw.githubusercontent.com/sparkfun/SparkFun_RTK_Firmware_Binaries/main/${{ env.FILENAME_PREFIX }}${{ env.RC_PREFIX }}${{ steps.date.outputs.date }}.bin"}]}
102103
103104
- name: Push JSON to Binaries Repo
104105
uses: dmnemec/copy_file_to_another_repo_action@main

.github/workflows/compile-release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66

77
env:
88
FILENAME_PREFIX: RTK_Surveyor_Firmware_v
9-
VERSION: "3_0"
9+
VERSION_MAJOR: 3
10+
VERSION_MINOR: 0
1011
POINTPERFECT_TOKEN: ${{ secrets.POINTPERFECT_TOKEN }}
1112

1213
jobs:
@@ -73,14 +74,14 @@ jobs:
7374
cd Firmware/RTK_Surveyor
7475
cd build
7576
cd esp32.esp32.esp32
76-
mv RTK_Surveyor.ino.bin ${{ env.FILENAME_PREFIX }}${{ env.VERSION }}.bin
77+
mv RTK_Surveyor.ino.bin ${{ env.FILENAME_PREFIX }}${{ env.VERSION_MAJOR }}_${{ env.VERSION_MINOR }}.bin
7778
7879
- name: Push binary to Binaries Repo
7980
uses: dmnemec/copy_file_to_another_repo_action@main
8081
env:
8182
API_TOKEN_GITHUB: ${{ secrets.API_GITHUB_RTK_FILE_TOKEN }}
8283
with:
83-
source_file: ./Firmware/RTK_Surveyor/build/esp32.esp32.esp32/${{ env.FILENAME_PREFIX }}${{ env.VERSION }}.bin
84+
source_file: ./Firmware/RTK_Surveyor/build/esp32.esp32.esp32/${{ env.FILENAME_PREFIX }}${{ env.VERSION_MAJOR }}_${{ env.VERSION_MINOR }}.bin
8485
destination_repo: 'sparkfun/SparkFun_RTK_Firmware_Binaries'
8586
destination_folder: ''
8687
user_email: '[email protected]'
@@ -93,7 +94,7 @@ jobs:
9394
path: RTK-Firmware.json
9495
write-mode: overwrite
9596
contents: |
96-
{"Configurations": [{"Version":"${{ env.VERSION }}", "URL":"https://raw.githubusercontent.com/sparkfun/SparkFun_RTK_Firmware_Binaries/main/${{ env.FILENAME_PREFIX }}${{ env.VERSION }}.bin"}]}
97+
{"Configurations": [{"Version":"${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}", "URL":"https://raw.githubusercontent.com/sparkfun/SparkFun_RTK_Firmware_Binaries/main/${{ env.FILENAME_PREFIX }}${{ env.VERSION_MAJOR }}_${{ env.VERSION_MINOR }}.bin"}]}
9798
9899
- name: Push JSON to Binaries Repo
99100
uses: dmnemec/copy_file_to_another_repo_action@main

0 commit comments

Comments
 (0)