Try to fix gh actions (#1117)
This commit is contained in:
parent
394bd26f43
commit
434e1dbf2a
|
@ -26,8 +26,8 @@ jobs:
|
|||
- name: Cache PlatformIO
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.platformio
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
|
||||
path: ~/.platformio/.cache
|
||||
key: ${{ runner.os }}-pio
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
|
@ -50,11 +50,13 @@ jobs:
|
|||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
- name: Run PlatformIO
|
||||
run: pio run -e ${{ matrix.env }}
|
||||
- name: Upload Artifact
|
||||
- name: Rename artifact
|
||||
run: cp .pio/build/${{ matrix.env }}/firmware.bin ${{ matrix.env }}.bin
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ matrix.env }}.bin
|
||||
path: .pio/build/${{ matrix.env }}/firmware.bin
|
||||
path: ${{ matrix.env }}.bin
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build # This job needs to wait for all matrix builds to complete
|
||||
|
|
Loading…
Reference in New Issue