MatrixRoomUtils

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

deploy.sh (733B)


      1 #!/bin/sh
      2 if [[ -z $(git status -s) ]]
      3 then
      4   echo "tree is clean"
      5 else
      6   echo "tree is dirty, please commit changes before running this"
      7   exit
      8 fi
      9 
     10 BASE_DIR=`pwd`
     11 rm -rf **/bin/Release
     12 cd MatrixRoomUtils.Web
     13 dotnet publish -c Release
     14 rsync -raP bin/Release/net7.0/publish/wwwroot/ rory.gay:/data/nginx/html_mru/
     15 cd bin/Release/net7.0/publish/wwwroot
     16 tar cf - ./ | xz -z -9 - > $BASE_DIR/MRU-BIN.tar.xz
     17 #rsync -raP $BASE_DIR/MRU-BIN.tar.xz rory.gay:/data/nginx/html_mru/MRU-BIN.tar.xz
     18 rm -rf $BASE_DIR/MRU-BIN.tar.xz
     19 cd $BASE_DIR
     20 git clone .git -b `git branch --show-current` src
     21 rm -rf src/.git
     22 tar cf - src/ | xz -z -9 - > MRU-SRC.tar.xz
     23 rsync -raP $BASE_DIR/MRU-SRC.tar.xz rory.gay:/data/nginx/html_mru/MRU-SRC.tar.xz
     24 rm -rf src/