mirror of
https://github.com/leozide/leocad.git
synced 2026-07-28 04:07:11 +00:00
Update continuous.yml
This commit is contained in:
@@ -50,7 +50,7 @@ jobs:
|
||||
mv ./LeoCAD-$VERSION-x86_64.AppImage ./LeoCAD-Linux-$VERSION-x86_64.AppImage
|
||||
- name: Upload AppImage
|
||||
run: |
|
||||
'curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt'
|
||||
'curl -s -H "Authorization: token ${{ secrets.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;
|
||||
@@ -101,9 +101,12 @@ jobs:
|
||||
mv LeoCAD.dmg LeoCAD-macOS-$(git rev-parse --short HEAD).dmg
|
||||
- name: Upload Package
|
||||
run: |
|
||||
'curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt'
|
||||
'curl -s -H "Authorization: token ${{ secrets.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;
|
||||
export TRAVIS_TAG=$GITHUB_REF_NAME
|
||||
export TRAVIS_REPO_SLUG=$GITHUB_REPOSITORY
|
||||
export TRAVIS_COMMIT=$GITHUB_SHA
|
||||
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
||||
bash upload.sh LeoCAD*.dmg*
|
||||
|
||||
Reference in New Issue
Block a user