Compare commits

...

3 Commits

Author SHA1 Message Date
c8bc7e828e c 2025-08-29 16:09:40 +02:00
63e0abd966 c 2025-08-29 15:44:15 +02:00
e3bd9712e9 up 2025-08-29 15:39:06 +02:00
2 changed files with 12 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,5 @@
build
build-up
*.html
*.pdf
build.ninja

View File

@@ -249,9 +249,19 @@ gen += """
build web: phony """+ " ".join(web_targets) +"""
"""
pub_cmd = [
"( [ -d build-up ] && cd build-up && git fetch origin && git checkout main && git reset --hard origin/main "
"|| git clone https://gitea.vxcc.dev/alexander.nutz/website-build.git build-up )",
"cd build-up",
"rsync -av --delete --exclude '.git' ../build/deploy/ .",
"git add .",
"git commit -m up",
"git push -u origin main",
]
gen+="""
rule pub_cmd
command = """ + ("" if recommend_pub else "echo WARN: not optimal website!!! &&") + """rsync -avz build/deploy/* root@195.26.251.204:/srv/http/alex
command = """ + ("" if recommend_pub else "echo WARN: not optimal website!!! && ") + " && ".join(pub_cmd) + """
pool = console
build pub: pub_cmd web
"""