Commit 021b1420 authored by JunHyung An's avatar JunHyung An
Browse files

Update .gitlab-ci.yml file

parent f32fb76a
Loading
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -33,30 +33,30 @@ lint:
    - node --version
    - npm run lint

pages:
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 run build
     - npm install netlify-cli -g
     - sed -i "s/capstone-design\/02\/vue-router\///g" ./src/router.js
     - rm -rf dist && 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

netlify:
pages:
  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