Commit 506da88b authored by JunHyung An's avatar JunHyung An
Browse files

Disabled netlify deploy

parent 0f63831f
Loading
Loading
Loading
Loading
Loading
+17 −17
Original line number Diff line number Diff line
@@ -33,23 +33,23 @@ lint:
    - node --version
    - npm run lint

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"
     - rm -rf dist public && npm run build
     - cp -a dist/. public/
     - sed -i "s/capstone-design\/02\/vue-router\///g" "./public/index.html"
    #  - 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:
#   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"
#      - rm -rf dist public && npm run build
#      - cp -a dist/. public/
#      - sed -i "s/capstone-design\/02\/vue-router\///g" "./public/index.html"
#     #  - 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

pages:
  stage: deploy