Skip to content
Snippets Groups Projects
Verified Commit b2e02208 authored by Mateusz Tyszczak's avatar Mateusz Tyszczak :scroll:
Browse files

Fix npm_push_doc_template stage

parent 05883684
No related branches found
No related tags found
No related merge requests found
Pipeline #116157 failed
...@@ -220,10 +220,12 @@ variables: ...@@ -220,10 +220,12 @@ variables:
# Allows to store generated documentation files inside a wiki repo specific to given project. Wiki repo must be explicitly created before using this job. # Allows to store generated documentation files inside a wiki repo specific to given project. Wiki repo must be explicitly created before using this job.
# Documentation files coming to protected branches are committed into root directory in the wiki repo. All other changes are pushed into non-stable/<branch-name> subdirectory what allows to render them by wiki. # Documentation files coming to protected branches are committed into root directory in the wiki repo. All other changes are pushed into non-stable/<branch-name> subdirectory what allows to render them by wiki.
.npm_push_doc_template: .npm_push_doc_template:
extends: .npm_based_job_base extends: .npm_process_built_package_tarball
variables: variables:
# Must be overrided by derived job # Must be overrided by derived job
WIKI_PUSH_TOKEN: "" WIKI_PUSH_TOKEN: ""
# Path to the built package tarball - it should be overrided by derived job
PACKAGE_TGZ_PATH: ""
# The directory containing sources to be built - it can be overrided by derived job # The directory containing sources to be built - it can be overrided by derived job
SOURCE_DIR: "${CI_PROJECT_DIR}" SOURCE_DIR: "${CI_PROJECT_DIR}"
...@@ -235,9 +237,10 @@ variables: ...@@ -235,9 +237,10 @@ variables:
DOC_URL: "" DOC_URL: ""
before_script: before_script:
- !reference [.npm_process_built_package_tarball, , before_script]
# start always at project root dir, to make sure .env file (included in artifacts) is generated there # start always at project root dir, to make sure .env file (included in artifacts) is generated there
- cd "${CI_PROJECT_DIR}" - cd "${CI_PROJECT_DIR}"
- /home/emscripten/scripts/npm_push_doc.sh "${PROJECT_URL}" "${CI_COMMIT_REF_NAME}" "${CI_COMMIT_REF_PROTECTED}" - /home/emscripten/scripts/npm_set_doc_url.sh "${PROJECT_URL}" "${CI_COMMIT_REF_NAME}" "${CI_COMMIT_REF_PROTECTED}"
after_script: after_script:
- cd "${CI_PROJECT_DIR}" - cd "${CI_PROJECT_DIR}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment