fix ci
This commit is contained in:
parent
905ace7300
commit
bc9c9149e1
1 changed files with 5 additions and 5 deletions
10
.github/workflows/build_esp32.yml
vendored
10
.github/workflows/build_esp32.yml
vendored
|
|
@ -61,18 +61,18 @@ jobs:
|
|||
run: git submodule update --init lib/tinyusb lib/uf2
|
||||
|
||||
- name: Build
|
||||
run: docker run --rm -v $PWD:/project -w /project espressif/idf:release-v4.4 make -C ports/esp32s2/ BOARD=${{ matrix.board }} all self-update copy-artifact
|
||||
run: docker run --rm -v $PWD:/project -w /project espressif/idf:release-v4.4 make -C ports/espressif/ BOARD=${{ matrix.board }} all self-update copy-artifact
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ matrix.board }}
|
||||
path: ports/esp32s2/_bin/${{ matrix.board }}/
|
||||
path: ports/espressif/_bin/${{ matrix.board }}/
|
||||
|
||||
- name: Create Release Asset
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
run: |
|
||||
#for f in ports/esp32s2/_bin/${{ matrix.board }}/*; do mv $f ${f%.*}-${{ github.event.release.tag_name }}."${f#*.}"; done
|
||||
zip -jr tinyuf2-${{ matrix.board }}-${{ github.event.release.tag_name }}.zip ports/esp32s2/_bin/${{ matrix.board }}
|
||||
#for f in ports/espressif/_bin/${{ matrix.board }}/*; do mv $f ${f%.*}-${{ github.event.release.tag_name }}."${f#*.}"; done
|
||||
zip -jr tinyuf2-${{ matrix.board }}-${{ github.event.release.tag_name }}.zip ports/espressif/_bin/${{ matrix.board }}
|
||||
|
||||
- name: Upload Release Asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
|
|
@ -92,6 +92,6 @@ jobs:
|
|||
if: ${{ github.event_name == 'release' }}
|
||||
with:
|
||||
upload_url: ${{ github.event.release.upload_url }}
|
||||
asset_path: ports/esp32s2/_bin/${{ matrix.board }}/update-tinyuf2.uf2
|
||||
asset_path: ports/espressif/_bin/${{ matrix.board }}/update-tinyuf2.uf2
|
||||
asset_name: update-tinyuf2-${{ matrix.board }}-${{ github.event.release.tag_name }}.uf2
|
||||
asset_content_type: application/x-binary
|
||||
|
|
|
|||
Loading…
Reference in a new issue