Commit 7255ffd7 authored by Noah Ing's avatar Noah Ing
Browse files

Update .gitlab-ci.yml

parent 45139ad2
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
image: "node:16-alpine"

stages:
  - test
  - build
  - deploy

pages:
  stage: deploy
build:
  stage: build
  script:
    - yarn install --frozen-lockfile --check-files --non-interactive
    - yarn build
    - mv dist public # rename the dist folder (result of npm run build)
    - cp -r dist/* public
  artifacts:
    paths:
      - public

pages:
  stage: deploy
  script:
    - echo 'Pages deployment job'
  artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
 No newline at end of file
  only:
  - main