mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +01:00
Update .travis.yml
This commit is contained in:
parent
995a85cd77
commit
5cd5fda576
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ jobs:
|
|||
- export PATH=$(readlink -f ./squashfs-root/usr/bin/):$PATH
|
||||
- ./squashfs-root/usr/bin/appimagetool AppDir/
|
||||
- mv ./LeoCAD-$VERSION-x86_64.AppImage ./LeoCAD-Linux-$VERSION-x86_64.AppImage
|
||||
- curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt
|
||||
- "curl -s -H 'Authorization: token $GITHUB_TOKEN' https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt"
|
||||
- export REMOTE=$(grep -Po '(?<=: \")(([a-z0-9])\w+)(?=\")' -m 1 repo.txt)
|
||||
- export LOCAL=$(git rev-parse HEAD)
|
||||
- if [[ "$REMOTE" != "$LOCAL" ]]; then echo "Build no longer current. $REMOTE vs $LOCAL - aborting upload."; exit 0; fi
|
||||
|
@ -94,7 +94,7 @@ jobs:
|
|||
- macdeployqt LeoCAD.app -dmg
|
||||
- mv LeoCAD.dmg LeoCAD-macOS-$(git rev-parse --short HEAD).dmg
|
||||
after_success:
|
||||
- curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt
|
||||
- "curl -s -H 'Authorization: token $GITHUB_TOKEN' https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt"
|
||||
- export REMOTE=$(ggrep -Po '(?<=: \")(([a-z0-9])\w+)(?=\")' -m 1 repo.txt)
|
||||
- export LOCAL=$(git rev-parse HEAD)
|
||||
- if [[ "$REMOTE" != "$LOCAL" ]]; then echo "Build no longer current. $REMOTE vs $LOCAL - aborting upload."; exit 0; fi
|
||||
|
|
Loading…
Add table
Reference in a new issue