gitlab CI

This commit is contained in:
Evan Burkey 2023-02-28 09:58:48 -08:00
parent ec54b82338
commit 61c7bb2f78
3 changed files with 19 additions and 2 deletions

2
.gitignore vendored
View File

@ -2,5 +2,5 @@ cmake*
.cache
build
compile_commands.json
docs
site/
web.sh

17
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,17 @@
image: polinux/mkdocs
variables:
GIT_SUBMODULE_STRATEGY: recursive
docs:
timeout: 5 minutes
script:
- apk add openssh-client
- mkdir -p ~/.ssh
- ssh-keyscan -H fputs.com >> ~/.ssh/known_hosts
- echo "$ssh_key" >> ~/.ssh/id_rsa
- chmod -R 700 ~/.ssh
- eval "$(ssh-agent -s)"
- ssh-add ~/.ssh/id_rsa
- ssh debian@fputs.com mkdir -p /var/www/fputs.com/docs
- scp -r ./site/* debian@fputs.com:/var/www/fputs.com/docs/

View File

@ -1,5 +1,5 @@
site_name: libflint
site_url: https://docs.fputs.com/libflint
site_url: https://fputs.com/docs/libflint
theme:
name: readthedocs
nav: