mirror of
https://github.com/alex-s168/website.git
synced 2025-09-10 01:05:07 +02:00
Compare commits
3 Commits
a9fff3f8a9
...
c8bc7e828e
Author | SHA1 | Date | |
---|---|---|---|
c8bc7e828e | |||
63e0abd966 | |||
e3bd9712e9 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
build
|
build
|
||||||
|
build-up
|
||||||
*.html
|
*.html
|
||||||
*.pdf
|
*.pdf
|
||||||
build.ninja
|
build.ninja
|
||||||
|
12
config.py
12
config.py
@@ -249,9 +249,19 @@ gen += """
|
|||||||
build web: phony """+ " ".join(web_targets) +"""
|
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+="""
|
gen+="""
|
||||||
rule pub_cmd
|
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
|
pool = console
|
||||||
build pub: pub_cmd web
|
build pub: pub_cmd web
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user