Github download
This commit is contained in:
parent
03c38a2448
commit
d6c827bb28
1 changed files with 3 additions and 1 deletions
|
|
@ -9,7 +9,9 @@ addons:
|
|||
packages:
|
||||
- libssh2-1-dev
|
||||
before_script:
|
||||
- curl -u $TOKEN -o latest.json https://api.github.com/repos/nim-lang/nightlies/releases/latest
|
||||
- curl -u $TOKEN -o latest.json --silent https://api.github.com/repos/nim-lang/nightlies/releases/latest
|
||||
- curl -u $TOKEN https://api.github.com/repos/nim-lang/nightlies/releases/latest
|
||||
- cat latest.json
|
||||
- export RELEASE=`cat latest.json | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`
|
||||
- export TXZ=`cat latest.json | grep '"name":' | sed -E 's/.*"([^"]+)".*/\1/' | grep linux`
|
||||
- export VERSION=`echo $TXZ | cut -d"-" -f 2,2`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue