Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
OSL
documentation
Commits
f79ff6ae
Commit
f79ff6ae
authored
1 year ago
by
Kostis Trantzas
Browse files
Options
Downloads
Patches
Plain Diff
mike plugin initial try at develop branch
parent
1499c530
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!11
Merging "develop" documentation into "main" to tag it as 2024Q2
,
!9
Draft: Added documentation on primitives support feature and NSLCM status
Pipeline
#3930
failed
1 year ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+18
-5
18 additions, 5 deletions
.gitlab-ci.yml
with
18 additions
and
5 deletions
.gitlab-ci.yml
+
18
−
5
View file @
f79ff6ae
pages
:
pages
:
stage
:
deploy
stage
:
deploy
image
:
python:latest
image
:
python:latest
script
:
variables
:
-
pip install mkdocs-material
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
-
mkdocs build --site-dir public
PAGES_BRANCH
:
develop
HTTPS_REMOTE
:
https://gitlab-ci-token:${ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git
before_script
:
-
pip install mkdocs-material mike
-
git config user.name $GITLAB_USER_NAME
-
git config user.email $GITLAB_USER_EMAIL
-
git fetch origin $PAGES_BRANCH && git -b checkout $PAGES_BRANCH origin/$PAGES_BRANCH || git checkout $PAGES_BRANCH || echo "Pages branch not deployed yet."
-
git checkout $CI_COMMIT_SHA
script
:
-
mike deploy --rebase --prefix public -r $HTTPS_REMOTE -p -b $PAGES_BRANCH -u $CI_COMMIT_TAG latest
-
mike set-default --rebase --prefix public -r $HTTPS_REMOTE -p -b $PAGES_BRANCH latest
-
git checkout $PAGES_BRANCH -- public/
artifacts
:
artifacts
:
paths
:
paths
:
-
public
-
public/
only
:
-
tags
rules
:
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
=
=
$CI_DEFAULT_BRANCH'
-
if
:
'
$CI_COMMIT_BRANCH
!
=
$CI_DEFAULT_BRANCH'
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