Skip to content

Commit 9ca22cd

Browse files
authored
Create license tarball (#97)
1 parent 01e75c1 commit 9ca22cd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,20 @@ jobs:
8282
asset_path: tfrog-motordriver/bin/${{ env.RELEASE_FILENAME_R6 }}
8383
asset_name: ${{ env.RELEASE_FILENAME_R6 }}
8484
asset_content_type: application/octet-stream
85+
86+
- name: Create license tarball
87+
run: |
88+
mkdir -p licenses/tf-2md3-firmware/at91lib
89+
cp LICENSE licenses/tf-2md3-firmware/
90+
cp LICENSE.at91lib licenses/tf-2md3-firmware/at91lib/
91+
tar czf licenses.tar.gz licenses
92+
- name: Upload license tarball
93+
uses: actions/upload-release-asset@v1
94+
if: github.event_name == 'release'
95+
env:
96+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97+
with:
98+
upload_url: ${{ github.event.release.upload_url }}
99+
asset_path: ./licenses.tar.gz
100+
asset_name: licenses.tar.gz
101+
asset_content_type: application/gzip

0 commit comments

Comments
 (0)