Update continuous.yml

This commit is contained in:
Leonardo Zide
2022-10-02 11:52:38 -07:00
parent 0a87749cc2
commit e365d20312
+5 -2
View File
@@ -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*