From 01afc73ac403f5590fae716d24bc572b85e9f09f Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Sun, 2 Oct 2022 12:34:19 -0700 Subject: [PATCH] Update continuous.yml --- .github/workflows/continuous.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 0fc7f503..698b9988 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -45,7 +45,7 @@ jobs: unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH export VERSION=$(git rev-parse --short HEAD) echo $VERSION - ./linuxdeployqt*.AppImage ./AppDir/usr/share/applications/*.desktop -bundle-non-qt-libs -unsupported-allow-new-glibc + ./linuxdeployqt*.AppImage ./AppDir/usr/share/applications/*.desktop -bundle-non-qt-libs -unsupported-allow-new-glibc -verbose=3 echo done1 ./linuxdeployqt*.AppImage --appimage-extract echo done2 @@ -54,8 +54,8 @@ jobs: mv ./LeoCAD-$VERSION-x86_64.AppImage ./LeoCAD-Linux-$VERSION-x86_64.AppImage - name: Upload AppImage run: | - '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)' + 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; wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh @@ -96,6 +96,12 @@ jobs: run: | wget https://github.com/leozide/povray/releases/download/continuous/povray chmod +x povray + curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt + echo < repo.txt + echo export REMOTE=$(grep -Po '(?<=: \")(([a-z0-9])\w+)(?=\")' -m 1 repo.txt) + export REMOTE=$(grep -Po '(?<=: \")(([a-z0-9])\w+)(?=\")' -m 1 repo.txt) + echo $REMOTE + - name: Build run: make -j ${{ steps.cpu-cores.outputs.count }} - name: Create Package