Skip to content
Discussion options

You must be logged in to vote

Solved:

I've found a simple solution:
GitHub will automatically publish the gh-pages branch in the pages. But in GitLab we need to add a .gitlab-ci.yml file into the gh-pages branch to have the same effect. A simple example of that file could look like this:

image: python:latest
pages:
  stage: deploy
  only:
    - gh-pages
  script:
    - mkdir .public
    - cp -r * .public
    - mv .public public
  artifacts:
    paths:
      - public
  # if one uses the GitLab-Runner with tags:
  tags:
    - Documentation

With this file set in place the versioning example of @squidfunk will work fine on GitLab.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@hpsems
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by hpsems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants