wu-sheng closed pull request #12: add asf-site publish script for CI. URL: https://github.com/apache/incubator-skywalking-website/pull/12
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/.travis.yml b/.travis.yml index 5502a07..6a6b2b7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,10 @@ language: node_js node_js: - "8" -env: - matrix: - - TEST_TYPE=clean - - TEST_TYPE=build +# Travis-CI Caching +cache: + directories: + - node_modules install: - export DISPLAY=':99.0' @@ -15,9 +15,23 @@ install: - npm install script: - - | - if [ "$TEST_TYPE" = clean ]; then - npm run clean - elif [ "$TEST_TYPE" = build ]; then - npm run build - fi \ No newline at end of file + - npm run clean + - npm run build + +after_script: + - cd dist + - git init + - git config user.name "JaredTan95" + - git config user.email "jian....@daocloud.io" + - git add . + - git commit -m "Update asf-site" + - git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:asf-site +# E: Build LifeCycle + +branches: + only: + - master +env: + global: + - GH_REF: github.com/apache/incubator-skywalking-website.git + - secure: "tSxgM/0QB8tqBdqeJS2vHld9qy/uwifDDDb9ylRYJ0jVN0JvVHfhdr9NKTVafYB+dOKlbIvc3FpX3X9NcbVBykXxjLEGFy90Hp/7F/sWV9jnJxR2XDMFiMGnJqv+BeyTU61I/Y975ytU1n7pX8Yj6vsv1ttsEDmlqKXKkRzZTuwtpILA10R0BeKJe/O2ZwW86nGzEIl4u1w9yJAL0GhN9IzxSpGgtf0xztS8Ux3dEV3uaQk3ikVRDcFo7VF+P1aqJSXQwIEPRp9bFcAZeiT4QBMUVCh4h+kmY4MunPmrQtWZJNCy0634HoloVj4kIbxSUhD2EoIWe/OgonfRgKdUo9VZuHCe5FXg83/5Ad1TVWFEN3kifgbB1uzQoUe43+TRTcYv/E7eac9jqRur3t7UJqi8Aee9JwMcuGE3qoOiRgmq5SIS/lYVZ08WsuBoU2W0mQb5n/ZLb+45a/f/iWCxJoUXabzOe98TLqiU81M8wFG8dxznG1bTLnqe04es+6Mw/+TQ7dUY9b6jgwQFjO+SJx9I64OSA0QJgIFBih4jAgJIavZOa8zwpHImD4nUGGkQbLkddcm2BPFopX7A+R3hocordswhcewbfKAseamzkkMi5WiHsVQduIOll69EvCXATvculUtkAfCToTkngYM5V5IQI2k56T0TWFw1ZbggR5w=" ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services