Loading .gitlab-ci.yml +17 −17 Original line number Diff line number Diff line Loading @@ -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" - CI_PAGES_URL= - 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 pages: stage: deploy Loading Loading
.gitlab-ci.yml +17 −17 Original line number Diff line number Diff line Loading @@ -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" - CI_PAGES_URL= - 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 pages: stage: deploy Loading