attempt to publish the docs

This commit is contained in:
Abraham Toriz 2022-09-24 23:25:29 -04:00
parent 6be61a26d0
commit f742264e29
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
1 changed files with 13 additions and 3 deletions

View File

@ -24,14 +24,24 @@ build-doc:
- make man
- gzip build/man/tiempo.1
rules:
- if: $CI_COMMIT_BRANCH
when: never
- if: $CI_COMMIT_TAG =~ /^v*/
- if: $CI_COMMIT_BRANCH = man-page
artifacts:
paths:
- docs/build/html
- docs/build/man/tiempo.1.gz
publish-doc:
stage: release
image: kroniak/ssh-client
script:
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- eval $(ssh-agent -s)
- ssh-add <(echo "$PRIVATE_KEY")
- scp -r docs/build/html/* $SERVER_USER@$SERVER_HOST:$APP_PATH
rules:
- if: $CI_COMMIT_BRANCH = man-page
build:
stage: build
image: categulario/rust-cli-image:latest