Update appveyor.yml
This commit is contained in:
@@ -45,6 +45,7 @@ for:
|
||||
- set TRAVIS_TAG=%APPVEYOR_REPO_TAG_NAME%
|
||||
- set TRAVIS_REPO_SLUG=%APPVEYOR_REPO_NAME%
|
||||
- set TRAVIS_COMMIT=%APPVEYOR_REPO_COMMIT%
|
||||
- set UPLOADTOOL_ISPRERELEASE=1
|
||||
- appveyor DownloadFile https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
||||
- if not defined APPVEYOR_PULL_REQUEST_NUMBER (bash upload.sh LeoCAD*.exe)
|
||||
|
||||
@@ -92,6 +93,7 @@ for:
|
||||
- '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)
|
||||
- export UPLOADTOOL_ISPRERELEASE=1
|
||||
- if [[ "$REMOTE" != "$LOCAL" ]]; then echo "Build no longer current. $REMOTE vs $LOCAL - aborting upload."; exit 0; fi;
|
||||
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
||||
- bash upload.sh LeoCAD*.AppImage*
|
||||
@@ -125,6 +127,7 @@ for:
|
||||
- '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)
|
||||
- export UPLOADTOOL_ISPRERELEASE=1
|
||||
- if [[ "$REMOTE" != "$LOCAL" ]]; then echo "Build no longer current. $REMOTE vs $LOCAL - aborting upload."; exit 0; fi;
|
||||
- appveyor DownloadFile https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
||||
- bash upload.sh LeoCAD*.dmg*
|
||||
|
||||
Reference in New Issue
Block a user