Update continuous.yml

This commit is contained in:
Leonardo Zide 2022-10-02 12:14:49 -07:00
parent feb7ca4516
commit 26872686b9

View file

@ -37,6 +37,7 @@ jobs:
mv library.bin AppDir/usr/share/leocad/library.bin
- name: Create AppImage
run: |
echo start
cp qt/leocad.desktop AppDir/leocad.desktop
cp tools/icon/256x256/apps/leocad.png AppDir/leocad.png
wget -q -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
@ -104,7 +105,7 @@ jobs:
- name: Upload Package
run: |
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 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