summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-02-05 23:00:02 +0700
committerGitHub <[email protected]>2021-02-05 23:00:02 +0700
commit7b62c71dd5ec42e61499d2d83902df9484842670 (patch)
treeead300f2f7e43df8c295eb5ebc2ceb4357198d9a /.github/workflows
parent42dad78dbc9e906eddc560f9584ed4551f145240 (diff)
parent465ea7a66e35725d1b5ec7443d86afe27762b586 (diff)
Merge pull request #634 from hathach/release-0.8.00.8.0
Release 0.8.0
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 74c48405c..567f31d54 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