summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: b4a575e6417664eb6d235c5489b4d8e349cd9f46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
before_script:
  - uname -a
image: node:16-buster

pages: # the job must be named pages
  image: node:16-buster
  stage: deploy
  tags:
  - linux
  script:
    - rm -rf node_modules
    - rm -rf */node_modules
    - npm install yarn
    - echo $PATH
    - export PATH="$(yarn global bin):$PATH"
    - echo $PATH
    - yarn global add @vue/cli
    - yarn install
    - vue --version
    - npm i -g @vue/cli-service
    - yarn build
    - yarn deploy
    - rm -rf public
    - mkdir -p public
    - mv dist/* public # rename the dist folder (result of npm run build)
    - find public/
  artifacts:
    paths:
      - public # artifact path must be /public for GitLab Pages to pick it up
  only:
    - master