attempt to publish the docs
This commit is contained in:
parent
6be61a26d0
commit
f742264e29
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue