Commit e0587576 authored by 神楽坂玲奈's avatar 神楽坂玲奈

CI 通知

parent d306a010
...@@ -2,20 +2,21 @@ language: node_js ...@@ -2,20 +2,21 @@ language: node_js
node_js: node node_js: node
env: env:
secure: QwnXsCYkcEftTWJShEVjVWuSkGu87sv/3yHx+JRPkdoqUHDlmWrS3Rl0LMBoJi9dJ/G7mIslKs89bzP0c8iPRiccwbc0tz/6AWwPYGYj7cHZcbH7wA0WEUpmOEO98I5x0Li6n+NK4DPTJTvGJjfWx4AQ4iTtsz/hTHDGYtMQuoY= secure:
QwnXsCYkcEftTWJShEVjVWuSkGu87sv/3yHx+JRPkdoqUHDlmWrS3Rl0LMBoJi9dJ/G7mIslKs89bzP0c8iPRiccwbc0tz/6AWwPYGYj7cHZcbH7wA0WEUpmOEO98I5x0Li6n+NK4DPTJTvGJjfWx4AQ4iTtsz/hTHDGYtMQuoY=
cache: cache:
directories: directories:
- "$HOME/.npm" - '$HOME/.npm'
notifications: notifications:
webhooks: https://api.mycard.moe/notify/travis webhooks: https://api.mycard.moe/notify/travis
script: npm run build script: npm run build
before_deploy: before_deploy:
- curl --location --retry 5 --output ossutil "http://ossutil-version-update.oss-cn-hangzhou.aliyuncs.com/$(curl http://ossutil-version-update.oss-cn-hangzhou.aliyuncs.com/ossutilversion)/ossutil64" - curl --location --retry 5 --output ossutil "http://ossutil-version-update.oss-cn-hangzhou.aliyuncs.com/$(curl http://ossutil-version-update.oss-cn-hangzhou.aliyuncs.com/ossutilversion)/ossutil64"
- chmod +x ossutil - chmod +x ossutil
- ./ossutil config --endpoint oss-cn-hangzhou.aliyuncs.com --access-key-id $ALIYUN_ID - ./ossutil config --endpoint oss-cn-hangzhou.aliyuncs.com --access-key-id $ALIYUN_ID
--access-key-secret $ALIYUN_SECRET --access-key-secret $ALIYUN_SECRET
deploy: deploy:
provider: script provider: script
script: ./ossutil cp -rf dist oss://mycard/store script: ./ossutil cp -rf dist oss://mycard/store
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment