From 0ed306dfdb60b0e6d7b1449f33857e81ceb0cc2f Mon Sep 17 00:00:00 2001 From: levy Date: Fri, 20 Sep 2019 14:51:44 +0800 Subject: [PATCH] ci: release-after-deploy --- .travis.yml | 3 --- build.sh | 4 ---- notify.sh | 5 +++++ 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index baf4eae..6a856b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,8 +11,6 @@ install: - yarn test script: - ./build.sh -after_success: -- GREN_GITHUB_TOKEN=$GITHUB_TOKEN yarn release after_script: - ./notify.sh cache: yarn @@ -21,7 +19,6 @@ deploy: local-dir: docs github-token: $GITHUB_TOKEN skip-cleanup: true - keep-history: true - provider: npm email: levy9527@qq.com api_key: $NPM_TOKEN diff --git a/build.sh b/build.sh index ae5d1f4..71653ff 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,3 @@ yarn stdver yarn build - -git remote add github https://$GITHUB_TOKEN@github.com/FEMessage/log-viewer.git > /dev/null 2>&1 -git push github HEAD:master --follow-tags - diff --git a/notify.sh b/notify.sh index 78ea8dc..68afe8c 100755 --- a/notify.sh +++ b/notify.sh @@ -5,6 +5,11 @@ then exit 1 fi +git remote add github https://$GITHUB_TOKEN@github.com/FEMessage/log-viewer.git > /dev/null 2>&1 +git push github HEAD:master --follow-tags + +GREN_GITHUB_TOKEN=$GITHUB_TOKEN yarn release + url=https://api.github.com/repos/FEMessage/log-viewer/releases/latest resp_tmp_file=resp.tmp