set pipeline to build docs on master

This commit is contained in:
Abraham Toriz 2022-10-30 23:38:19 -06:00
parent f3bdc85d4c
commit f4e733f9b8
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
1 changed files with 3 additions and 19 deletions

View File

@ -13,9 +13,6 @@ test:cargo:
- rustup component add clippy
- cargo clippy --all-targets --all-features -- -D warnings
- cargo test
rules:
- if: $CI_COMMIT_BRANCH == "man-page"
when: never
build-doc:
stage: build
@ -27,7 +24,8 @@ build-doc:
- make man
- gzip build/man/tiempo.1
rules:
- if: $CI_COMMIT_BRANCH == "man-page"
- if: $CI_COMMIT_BRANCH == "master"
- if: $CI_COMMIT_TAG =~ /^v*/
artifacts:
paths:
- docs/build/html
@ -43,7 +41,7 @@ publish-doc:
- ssh-add <(echo "$PRIVATE_KEY")
- scp -r docs/build/html/* $SERVER_USER@$SERVER_HOST:$APP_PATH
rules:
- if: $CI_COMMIT_BRANCH == "man-page"
- if: $CI_COMMIT_BRANCH == "master"
build:
stage: build
@ -158,17 +156,3 @@ deploy:arch-git:
- if: $CI_COMMIT_BRANCH
when: never
- if: $CI_COMMIT_TAG =~ /^v*/
# pages:
# image: python:3.8-alpine
# stage: deploy
# script:
# - pip install -U sphinx
# - mkdir -p public/{es,en}
# - sphinx-build -b html ./docs/es/source/ public/es
# - sphinx-build -b html ./docs/en/source/ public/en
# artifacts:
# paths:
# - public
# rules:
# - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH