Skip to content

Commit

Permalink
Generate tidal.txt during github action (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpslwk authored May 17, 2022
1 parent a1703e2 commit a10e949
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -50,6 +50,8 @@ jobs:
cd micropython/ports/esp32
make submodules BOARD=tildamk6 USER_C_MODULES=$GITHUB_WORKSPACE/drivers/micropython.cmake IOT_SOLUTION_PATH=$GITHUB_WORKSPACE/esp-iot-solution TARGET=esp32s3
make BOARD=tildamk6 USER_C_MODULES=$GITHUB_WORKSPACE/drivers/micropython.cmake $@ IOT_SOLUTION_PATH=$GITHUB_WORKSPACE/esp-iot-solution TARGET=esp32s3
cd ../../..
echo "{\"build\":\"$(git describe --tags --always)\", \"name\":\"$(git describe --tags --always)\"}" > micropython/ports/esp32/build-tildamk6/tidal.txt
- name: Archive firmware
uses: actions/upload-artifact@v3
with:
@@ -59,6 +61,7 @@ jobs:
micropython/ports/esp32/build-tildamk6/bootloader/bootloader.bin
micropython/ports/esp32/build-tildamk6/partition_table/partition-table.bin
micropython/ports/esp32/build-tildamk6/ota_data_initial.bin
micropython/ports/esp32/build-tildamk6/tidal.txt
- name: Create latest release for tags
uses: "marvinpinto/action-automatic-releases@latest"
if: github.event_name == 'push'
@@ -68,10 +71,12 @@ jobs:
title: "Latest release build"
files: |
micropython/ports/esp32/build-tildamk6/micropython.bin
micropython/ports/esp32/build-tildamk6/tidal.txt
- name: Create specific release for tags
uses: "marvinpinto/action-automatic-releases@latest"
if: github.event_name == 'push'
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
files: |
micropython/ports/esp32/build-tildamk6/micropython.bin
micropython/ports/esp32/build-tildamk6/tidal.txt

0 comments on commit a10e949

Please sign in to comment.