set pipeline to build docs on master
This commit is contained in:
parent
f3bdc85d4c
commit
f4e733f9b8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue