Skip to content
Snippets Groups Projects

Elder.js GitLab CI

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Jonas Zohren
    Edited
    .gitlab-ci.yml 336 B
    image: node:15-alpine
    
    
    # Test if page builds if it is not the master branch
    pages:
      script:
        - npm ci
        - npm run build
      except:
        - master
        
    # Build page and deploy it to GitLab Pages if it is the master branch.
    pages:
      script:
        - npm ci
        - npm run build
      artifacts:
        paths:
          - public
      only:
        - master
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment