forked from mirrors/akkoma
add manual deploy for docs
This commit is contained in:
parent
539c6d6666
commit
dcc36df8cf
2 changed files with 6 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
||||||
# App artifacts
|
# App artifacts
|
||||||
docs/site
|
docs/site
|
||||||
|
*.zip
|
||||||
*.sw*
|
*.sw*
|
||||||
secret
|
secret
|
||||||
/_build
|
/_build
|
||||||
|
|
|
@ -1,9 +1,14 @@
|
||||||
all: install
|
all: install
|
||||||
pipenv run mkdocs build
|
pipenv run mkdocs build
|
||||||
|
|
||||||
|
branch := $(shell git rev-parse --abbrev-ref HEAD)
|
||||||
install:
|
install:
|
||||||
pipenv install
|
pipenv install
|
||||||
clean:
|
clean:
|
||||||
rm -rf site
|
rm -rf site
|
||||||
serve:
|
serve:
|
||||||
pipenv run python3 -m http.server -d site
|
pipenv run python3 -m http.server -d site
|
||||||
|
zip:
|
||||||
|
zip -r docs.zip site/*
|
||||||
|
deploy:
|
||||||
|
cd site && rclone copy . scaleway:akkoma-docs/$(branch)
|
||||||
|
|
Loading…
Reference in a new issue