Skip to content
Snippets Groups Projects
Commit 8633e3e6 authored by Dyszczo's avatar Dyszczo
Browse files

Merge branch 'feature/manual-docs' into 'master'

docs can be manually refreshed

See merge request wpdesk/gitlab-ci!70
parents 631fb0e8 baaf43b9
No related branches found
No related tags found
No related merge requests found
...@@ -100,6 +100,21 @@ stages: ...@@ -100,6 +100,21 @@ stages:
only: only:
- tags - tags
.template: &docs-generation
image:
name: wpdesknet/apigen
stage: pre-deploy
artifacts:
expire_in: 1 day
name: "docs"
paths:
- docs/
script:
- echo ${WPDESK_CI_VERSION}
- ls -l
- /app/vendor/bin/apigen generate
- php /app/hooks-docs.php ${CI_PROJECT_DIR}
before_script: before_script:
- cd ${CI_PROJECT_DIR} - cd ${CI_PROJECT_DIR}
...@@ -238,23 +253,15 @@ integration test current woocommerce: ...@@ -238,23 +253,15 @@ integration test current woocommerce:
- $DISABLE_INTEGRATION_TESTS - $DISABLE_INTEGRATION_TESTS
apigen docs: apigen docs:
image: <<: *docs-generation
name: wpdesknet/apigen
stage: pre-deploy
artifacts:
expire_in: 1 day
name: "docs"
paths:
- docs/
allow_failure: true allow_failure: true
script:
- echo ${WPDESK_CI_VERSION}
- ls -l
- /app/vendor/bin/apigen generate
- php /app/hooks-docs.php ${CI_PROJECT_DIR}
only: only:
- tags - tags
apigen docs refresh:
<<: *docs-generation
when: manual
pages: pages:
stage: deploy stage: deploy
dependencies: dependencies:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment