Update main.yml
This commit is contained in:
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
@@ -47,6 +47,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "::set-output name=firmware_version::$(grep '*VERSION' src/Globals.cpp | cut -d'=' -f2 | sed -r 's/"(.*)";/\1/' | awk '{$1=$1};1')"
|
echo "::set-output name=firmware_version::$(grep '*VERSION' src/Globals.cpp | cut -d'=' -f2 | sed -r 's/"(.*)";/\1/' | awk '{$1=$1};1')"
|
||||||
|
|
||||||
|
- name: Create Versionfile
|
||||||
|
run: echo '${{ steps.version_number.outputs.firmware_version }}' > version
|
||||||
|
|
||||||
- name: Run PlatformIO
|
- name: Run PlatformIO
|
||||||
run: pio run
|
run: pio run
|
||||||
|
|
||||||
@@ -65,21 +68,9 @@ jobs:
|
|||||||
name: firmware
|
name: firmware
|
||||||
path: .pio/build/esp32dev/firmware.bin
|
path: .pio/build/esp32dev/firmware.bin
|
||||||
|
|
||||||
create_release:
|
|
||||||
needs: compile_firmware
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Extract version number
|
|
||||||
id: version_number
|
|
||||||
run: |
|
|
||||||
echo "::set-output name=firmware_version::$(grep '*VERSION' src/Globals.cpp | cut -d'=' -f2 | sed -r 's/"(.*)";/\1/' | awk '{$1=$1};1')"
|
|
||||||
|
|
||||||
- name: Create Versionfile
|
|
||||||
run: echo '${{ steps.version_number.outputs.firmware_version }}' > version
|
|
||||||
|
|
||||||
- name: Download firmware
|
- name: Download firmware
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user