diff options
| author | hathach <[email protected]> | 2021-02-05 21:24:46 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-02-05 21:24:46 +0700 |
| commit | 449bcc239fbf4c7a5dd3100c9a8a9cecbf58ae27 (patch) | |
| tree | 3f7e3b0e5b6ee514e5fd3da801f25e39a3431948 | |
| parent | bb2f93d4270cfffc16b180a870f30ac789fdae30 (diff) | |
upload example as release assets
| -rw-r--r-- | .github/workflows/build.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 74c48405c..4dd81c8c9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,6 +77,23 @@ jobs: name: ${{ matrix.family }}-tinyusb-examples path: _bin/ + - name: Create Release Asset + if: ${{ github.event_name == 'release' }} + run: | + cd _bin/ + zip r ../${{ matrix.family }}-tinyusb-${{ github.event.release.tag_name }}-examples.zip * + + - name: 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: ${{ matrix.family }}-tinyusb-${{ github.event.release.tag_name }}-examples.zip + asset_name: ${{ matrix.family }}-tinyusb-${{ github.event.release.tag_name }}-examples.zip + asset_content_type: application/zip + # Build all no-family (opharned) boards build-board: runs-on: ubuntu-latest |
