setting version before project name in api

This commit is contained in:
Julien Fastré 2016-12-12 21:29:18 +01:00
parent 0842708b7e
commit fedfa5dad3

View File

@ -37,7 +37,7 @@ api-doc-build:
image: chill/ci-image:php-7
before_script:
- mkdir api-doc
script: apigen generate --destination api-doc/$CI_PROJECT_NAME/$CI_BUILD_REF_NAME
script: apigen generate --destination api-doc/$CI_BUILD_REF_NAME/$CI_PROJECT_NAME
artifacts:
paths:
- "api-doc/"
@ -56,7 +56,7 @@ api-doc-deploy:
# go to api-doc to have and url with PROJECT/BUILD
- cd api-doc
# upload, and keep files during 1 year
script: "swift upload --header \"X-Delete-After: 31536000\" $CONTAINER_API $CI_PROJECT_NAME/$CI_BUILD_REF_NAME"
script: "swift upload --header \"X-Delete-After: 31536000\" $CONTAINER_API $CI_BUILD_REF_NAME/$CI_PROJECT_NAME"
only:
- master
- tags