Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
workerbee
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
workerbee
Commits
6521ee4e
Commit
6521ee4e
authored
1 month ago
by
Mateusz Tyszczak
Committed by
Bartek Wrona
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
Move supplement documentation url to the build step
parent
3e02d08f
No related branches found
No related tags found
1 merge request
!28
Use common CI configuration scripts and configs
Pipeline
#116576
passed
1 month ago
Stage: .pre
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+7
-11
7 additions, 11 deletions
.gitlab-ci.yml
with
7 additions
and
11 deletions
.gitlab-ci.yml
+
7
−
11
View file @
6521ee4e
...
@@ -25,13 +25,7 @@ lint:
...
@@ -25,13 +25,7 @@ lint:
script
:
script
:
-
npm run lint-ci
-
npm run lint-ci
supplement_documentation_url
:
# Builds and supplements wiki URL so it is available in Wiki and published package README
stage
:
.pre
extends
:
.npm_generate_doc_url
variables
:
REPLACE_ENV_NAME
:
"
GEN_DOC_URL"
REPLACE_FILE_PATH
:
"
${CI_PROJECT_DIR}/README.md"
build
:
build
:
stage
:
build
stage
:
build
extends
:
.npm_build_template
extends
:
.npm_build_template
...
@@ -39,12 +33,12 @@ build:
...
@@ -39,12 +33,12 @@ build:
DIST_DIR
:
"
$CI_PROJECT_DIR/dist"
DIST_DIR
:
"
$CI_PROJECT_DIR/dist"
NPM_PACKAGE_SCOPE
:
"
@hiveio"
NPM_PACKAGE_SCOPE
:
"
@hiveio"
NPM_PACKAGE_NAME
:
"
workerbee"
NPM_PACKAGE_NAME
:
"
workerbee"
REPLACE_DOC_URL_ENV
:
"
GEN_DOC_URL"
REPLACE_FILE_PATH
:
"
${CI_PROJECT_DIR}/README.md"
needs
:
needs
:
-
job
:
lint
-
job
:
lint
-
job
:
supplement_documentation_url
artifacts
:
true
# Generates documentation
and supplements wiki URL so it is available in Wiki and published package README
# Generates documentation
generate_docs
:
generate_docs
:
stage
:
build
stage
:
build
extends
:
.npm_based_job_base
extends
:
.npm_based_job_base
...
@@ -53,7 +47,7 @@ generate_docs:
...
@@ -53,7 +47,7 @@ generate_docs:
script
:
script
:
-
scripts/generate_api_docs.sh "${CI_PROJECT_URL}" "${CI_COMMIT_SHA}"
-
scripts/generate_api_docs.sh "${CI_PROJECT_URL}" "${CI_COMMIT_SHA}"
needs
:
needs
:
-
job
:
supplement_documentation_url
-
job
:
build
artifacts
:
true
artifacts
:
true
artifacts
:
artifacts
:
paths
:
paths
:
...
@@ -79,6 +73,8 @@ push_to_wiki:
...
@@ -79,6 +73,8 @@ push_to_wiki:
DIST_DIR
:
"
$CI_PROJECT_DIR/dist"
DIST_DIR
:
"
$CI_PROJECT_DIR/dist"
needs
:
needs
:
-
job
:
build
artifacts
:
true
-
job
:
generate_docs
-
job
:
generate_docs
artifacts
:
true
artifacts
:
true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment