mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-14 17:36:38 +02:00
added esp32 to release work flow
This commit is contained in:
parent
f76fbea5c2
commit
0af251bff9
2 changed files with 8 additions and 2 deletions
2
.github/workflows/compile_esp8266.yml
vendored
2
.github/workflows/compile_esp8266.yml
vendored
|
@ -39,7 +39,7 @@ jobs:
|
||||||
working-directory: tools/esp8266/html
|
working-directory: tools/esp8266/html
|
||||||
run: python convert.py
|
run: python convert.py
|
||||||
- name: Run PlatformIO
|
- name: Run PlatformIO
|
||||||
run: pio run -d tools/esp8266 --environment esp8266-release
|
run: pio run -d tools/esp8266 --environment esp8266-release --environment esp32-wroom32-release
|
||||||
- name: rename-binary-files
|
- name: rename-binary-files
|
||||||
id: rename-binary-files
|
id: rename-binary-files
|
||||||
working-directory: tools/esp8266/scripts
|
working-directory: tools/esp8266/scripts
|
||||||
|
|
|
@ -24,6 +24,12 @@ def readVersion(path, infile):
|
||||||
src = path + ".pio/build/esp8266-release/firmware.bin"
|
src = path + ".pio/build/esp8266-release/firmware.bin"
|
||||||
dst = path + ".pio/build/out/" + versionout
|
dst = path + ".pio/build/out/" + versionout
|
||||||
os.rename(src, dst)
|
os.rename(src, dst)
|
||||||
|
|
||||||
|
versionout = version[:-1] + "_esp32_" + sha + ".bin"
|
||||||
|
src = path + ".pio/build/esp32-wroom32-release/firmware.bin"
|
||||||
|
dst = path + ".pio/build/out/" + versionout
|
||||||
|
os.rename(src, dst)
|
||||||
|
|
||||||
print("::set-output name=name::" + versionnumber[:-1] )
|
print("::set-output name=name::" + versionnumber[:-1] )
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue