about summary refs log tree commit diff
path: root/deploy.sh
blob: 9762db566f322bb49d7a0ccd224e6e20c88f53b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
BASE_DIR=`pwd`
rm -rf **/bin/Release
cd MatrixRoomUtils.Web
dotnet publish -c Release
rsync -raP bin/Release/net7.0/publish/wwwroot/ rory.gay:/data/nginx/html_mru/
cd bin/Release/net7.0/publish/wwwroot
tar cf - ./ | xz -z -9 - > $BASE_DIR/MRU-BIN.tar.xz
#rsync -raP $BASE_DIR/MRU-BIN.tar.xz rory.gay:/data/nginx/html_mru/MRU-BIN.tar.xz
rm -rf $BASE_DIR/MRU-BIN.tar.xz
cd $BASE_DIR
git clone .git -b `git branch --show-current` src
rm -rf src/.git
tar cf - src/ | xz -z -9 - > MRU-SRC.tar.xz
rsync -raP $BASE_DIR/MRU-SRC.tar.xz rory.gay:/data/nginx/html_mru/MRU-SRC.tar.xz
rm -rf src/