Commit 1f4c4bbd authored by JunHyung An's avatar JunHyung An
Browse files

Update .gitlab-ci.yml file

parent f3f6b945
Loading
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -45,3 +45,20 @@ pages:
      - public
  rules:
    - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH

netlify:
  stage: deploy
  when: on_success # only if previous stages' jobs all succeeded
  # override inherited cache settings since node_modules is not needed
  script:
     - npm install netlify-cli -g
     - sed -i 's/capstone-design\/02\/vue-router\///g' ./src/router.js
     - npm run build
     - cp -a dist/. public/
    #  - netlify --version
     - netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --prod --dir public/
  artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
 No newline at end of file