Skip to content
GitLab
Explore
Sign in
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
1fe7a18b
Commit
1fe7a18b
authored
11 months ago
by
Bartek Wrona
Browse files
Options
Downloads
Patches
Plain Diff
push_to_wiki job adjusted to .npm_push_doc_template
parent
512f5dcd
No related branches found
No related tags found
1 merge request
!9
Move to hiveio
Pipeline
#94838
passed
11 months ago
Stage: .pre
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-11
3 additions, 11 deletions
.gitlab-ci.yml
with
3 additions
and
11 deletions
.gitlab-ci.yml
+
3
−
11
View file @
1fe7a18b
...
...
@@ -70,20 +70,12 @@ test:
artifacts
:
true
push_to_wiki
:
extends
:
.npm_push_doc_template
stage
:
deploy
variables
:
WIKI_PUSH_TOKEN
:
"
$WIKI_PUSH_TOKEN"
DIST_DIR
:
"
$CI_PROJECT_DIR/dist"
WIKI_REPO_URL
:
"
https://gitlab-ci-token:$WIKI_PUSH_TOKEN@gitlab.syncad.com/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME.wiki.git"
script
:
-
echo "Using wiki https://gitlab.syncad.com/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME.wiki.git"
-
git clone "$WIKI_REPO_URL" "$DIST_DIR/wiki"
-
cp -r "$DIST_DIR/docs"/* "$DIST_DIR/wiki"
-
cd "$DIST_DIR/wiki"
-
git config user.name "$GITLAB_USER_NAME"
-
git config user.email "$GITLAB_USER_EMAIL"
-
git add .
# Push only on changes:
-
(git status | grep -q modified && git commit -m "Update generated documentation" && git push origin "HEAD:main") ||
true
needs
:
-
job
:
generate_docs
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