try upload release zip again
This commit is contained in:
parent
c0415c98f6
commit
bb22978d51
1 changed files with 12 additions and 10 deletions
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
|
|
@ -74,21 +74,22 @@ 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: Create Release Asset
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
run: |
|
||||
zip -jr tinyuf2-${{ matrix.board }}-${{ github.event.release.tag_name }}.zip ports/esp32s2/_bin/${{ matrix.board }}
|
||||
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
with:
|
||||
upload_url: ${{ github.event.release.upload_url }}
|
||||
asset_path: ports/esp32s2/_bin/${{ matrix.board }}/
|
||||
asset_path: tinyuf2-${{ matrix.board }}-${{ github.event.release.tag_name }}.zip
|
||||
asset_name: tinyuf2-${{ matrix.board }}-${{ github.event.release.tag_name }}
|
||||
asset_content_type: application/zip
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
|
||||
ARM:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -144,18 +145,19 @@ jobs:
|
|||
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: Create Release Asset
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
run: |
|
||||
zip -jr tinyuf2-${{ matrix.board }}-${{ github.event.release.tag_name }}.zip ${{ env.PORT }}/_bin/${{ matrix.board }}
|
||||
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
with:
|
||||
upload_url: ${{ github.event.release.upload_url }}
|
||||
asset_path: ${{ env.PORT }}/_bin/${{ matrix.board }}
|
||||
asset_path: tinyuf2-${{ matrix.board }}-${{ github.event.release.tag_name }}.zip
|
||||
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