Simpify pipeline
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-05-21 08:45:59 +03:00
parent 1eb285dc63
commit bbf5826b0f
4 changed files with 13 additions and 39 deletions

View File

@@ -1,4 +1,9 @@
all: build serve
local_build: prepare build upload_to_srv clean
drone_build: prepare build copy_to_dir unprepare clean
build:
mkdocs build
clean:
@@ -9,6 +14,10 @@ unprepare:
pip uninstall mkdocs mkdocs-windmill-dark
serve:
mkdocs serve
upload: prepare build upload_to_srv clean
upload_to_srv:
rsync -a -P --delete `pwd`/site/ geekwiki:/srv/http/
copy_to_dir:
cp -r /srv/http /srv/http_${DRONE_BUILD_NUMBER}
rsync -a -P --delete `pwd`/site/ /srv/http/