upload release assets (#96)

* test release upload

* test upload release

* install uritemplate

* install requests

* opt out from travis
This commit is contained in:
Ha Thach
2020-01-03 16:23:37 +07:00
committed by GitHub
parent 5b2b688d03
commit 454b281201
4 changed files with 119 additions and 3 deletions

View File

@ -23,7 +23,7 @@ jobs:
- name: Install Toolchains
run: |
pip3 install adafruit-nrfutil
pip3 install adafruit-nrfutil uritemplate requests
wget https://www.nordicsemi.com/api/sitecore/Products/DownloadPlatform --post-data=fileid=8F19D314130548209E75EFFADD9348DB -O cli-tools.tar
tar -xv -f cli-tools.tar
echo "::add-path::$GITHUB_WORKSPACE/mergehex"
@ -34,6 +34,11 @@ jobs:
- name: Build
run: python3 tools/build_all.py
- name: Upload release
- name: Upload Release Asset
if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')
run: echo Upload... Bin files
working-directory: tools
env:
UPLOAD_URL: ${{ github.event.release.upload_url }}
ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: "[ -z \"$ADABOT_GITHUB_ACCESS_TOKEN\" ] || python3 -u upload_release_files.py"