diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7501ef3df..5c58bacde 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,6 +47,17 @@ api-doc-build: only: - master - tags + +api-doc-deploy: + stage: deploy-doc + image: pallet/swiftclient:latest + before_script: + # test that CONTAINER_API variable is set + - if [ -z ${CONTAINER_API+x} ]; then echo "Please set CONTAINER_API variable"; exit -1; fi + script: swift upload $CONTAINER_API api-doc/$CI_PROJECT_NAME/$CI_BUILD_REF_NAME + only: + - master + - tags deploy-packagist: stage: deploy