Skip to content
Snippets Groups Projects
Commit baaf43b9 authored by dyszczo's avatar dyszczo
Browse files

docs can be manually refreshed

parent 6ea2e00a
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