File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 build :
1515 name : Build
1616 runs-on : ubuntu-latest
17+ needs :
18+ - semver
1719 steps :
1820 - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
1921 - uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
2729 - uses : devcontainers/ci@a56d055efecd725e8cfe370543b6071b79989cc8 # v0.3
2830 with :
2931 runCmd : rake build
32+ env : |
33+ VERSION=${{ needs.semver.outputs.semantic_version}}
3034 - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
3135 with :
3236 name : firmware-factory.bin
Original file line number Diff line number Diff line change 66desc "Build/Compile with esphome"
77task :build do
88 sh '[ ! -f "lexis.ttf" ] && wget -L -O "lexis.ttf" "https://github.com/damianvila/font-lexis/raw/main/fonts/lexis.ttf" || true'
9- sh "esphome compile childrensclock.yaml"
9+ sh "esphome -s VERSION ${VERSION:=0.0.0} compile childrensclock.yaml"
1010end
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ esphome:
2828 - src/childrensclock.h
2929 project :
3030 name : chrisns.childrens-clock
31- version : 0.0.1
31+ version : $VERSION
3232 on_boot :
3333 priority : 700
3434 then :
You can’t perform that action at this time.
0 commit comments