Skip to content
Snippets Groups Projects
.gitlab-ci.yml 562 B
Newer Older
  • Learn to ignore specific revisions
  • GitLab's avatar
    GitLab committed
    
    variables:
      JEKYLL_ENV: production
      LC_ALL: C.UTF-8
    
    before_script:
    
      - apt update
      - apt install -y git-lfs
    
    GitLab's avatar
    GitLab committed
      - bundle install
    
    test:
      stage: test
      script:
    
      - git lfs checkout
    
    GitLab's avatar
    GitLab committed
      - bundle exec jekyll build -d test
      artifacts:
        paths:
        - test
      except:
      - master
    
    pages:
      stage: deploy
      script:
    
      - git lfs checkout
    
    GitLab's avatar
    GitLab committed
      - bundle exec jekyll build -d public
      artifacts:
        paths:
        - public
    
        expire_in: 15 mins # latest is always kept (settings/ci/artifacts/Keep artifacts from most recent successful jobs)
    
    GitLab's avatar
    GitLab committed
      only:
      - master