try to upload release asset
This commit is contained in:
parent
352ffd6ca3
commit
c0415c98f6
1 changed files with 22 additions and 6 deletions
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
|
|
@ -74,9 +74,9 @@ jobs:
|
|||
name: ${{ matrix.board }}
|
||||
path: ports/esp32s2/_bin/${{ matrix.board }}/
|
||||
|
||||
- name: Rename release artifact
|
||||
run: cp build/uf2-esp32s.bin uf2-${{ matrix.board }}-${{ github.event.release.tag_name }}.bin
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
#- name: Rename Release Artifact
|
||||
# run: cp build/uf2-esp32s.bin uf2-${{ matrix.board }}-${{ github.event.release.tag_name }}.bin
|
||||
# if: ${{ github.event_name == 'release' }}
|
||||
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
|
|
@ -85,9 +85,9 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ github.event.release.upload_url }}
|
||||
asset_path: ./uf2-${{ matrix.board }}-${{ github.event.release.tag_name }}.bin
|
||||
asset_name: uf2-${{ matrix.board }}-${{ github.event.release.tag_name }}.bin
|
||||
asset_content_type: application/octet-stream
|
||||
asset_path: ports/esp32s2/_bin/${{ matrix.board }}/
|
||||
asset_name: tinyuf2-${{ matrix.board }}-${{ github.event.release.tag_name }}
|
||||
asset_content_type: application/zip
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
|
||||
ARM:
|
||||
|
|
@ -143,3 +143,19 @@ jobs:
|
|||
with:
|
||||
name: ${{ matrix.board }}
|
||||
path: ${{ env.PORT }}/_bin/${{ matrix.board }}
|
||||
|
||||
#- name: Rename Release Artifact
|
||||
# run: cp build/uf2-esp32s.bin uf2-${{ matrix.board }}-${{ github.event.release.tag_name }}.bin
|
||||
# if: ${{ github.event_name == 'release' }}
|
||||
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ github.event.release.upload_url }}
|
||||
asset_path: ${{ env.PORT }}/_bin/${{ matrix.board }}
|
||||
asset_name: tinyuf2-${{ matrix.board }}-${{ github.event.release.tag_name }}
|
||||
asset_content_type: application/zip
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue