multi-pbar threading
This commit is contained in:
25
deploy.nu
Normal file
25
deploy.nu
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env nu
|
||||
|
||||
let version = (open pyproject.toml).project.version
|
||||
let zipfile = $"scgenerator-($version).zip"
|
||||
let help_page = "scgenerator.html"
|
||||
|
||||
let filelist = (
|
||||
git ls-files |
|
||||
lines |
|
||||
where {not ($in | str ends-with ".afphoto")} |
|
||||
where {$in != "deploy.nu"}
|
||||
)
|
||||
|
||||
^zip $zipfile ...$filelist
|
||||
|
||||
open README.md |
|
||||
str replace -a __VERSION__ $version |
|
||||
pandoc --standalone --toc --template build/template.html |
|
||||
save -f $'build/($help_page)'
|
||||
|
||||
scp -O $zipfile $"fibnas:/volume1/web/($zipfile)"
|
||||
scp -O $zipfile $"fibnas:/volume1/web/scgenerator-latest.zip"
|
||||
scp -O $'build/($help_page)' $"fibnas:/volume1/web/($help_page)"
|
||||
|
||||
rm $zipfile
|
||||
Reference in New Issue
Block a user