Skip to content

Commit

Permalink
upload example as release assets
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Feb 5, 2021
1 parent bb2f93d commit 449bcc2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 449bcc2

Please sign in to comment.