deploy script

This commit is contained in:
Benoît Sierro
2023-09-28 09:26:00 +02:00
parent ab5ccd380d
commit 2aabf1a6df

10
deploy Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env nu
let zipfile = "scgenerator.zip"
let filelist = (git ls-files | lines | where {not ($in | str ends-with ".afphoto")})
^zip $zipfile $filelist
scp -O $zipfile $"fibnas:/volume1/web/($zipfile)"
rm $zipfile