Skip to content
Permalink
Browse files

fix(gnesboard): fix cdn

  • Loading branch information...
hanxiao committed Jul 17, 2019
1 parent 7b04697 commit 736f6053f0dc41ab9508bc49dfc4c3481060e5f3
Showing with 19 additions and 9 deletions.
  1. +2 −2 gnes/resources/static/gnes-board.html
  2. +16 −6 release.sh
  3. +1 −1 shell/push-wechatwork.sh
@@ -6,7 +6,7 @@
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.8/styles/default.min.css">
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.8/styles/default.min.css">
<style>
.sticky-card {
@@ -334,7 +334,7 @@
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script src="https://unpkg.com/mermaid@8.1.0/dist/mermaid.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.8/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.8/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js"></script>
<script>
mermaid.initialize({
@@ -44,7 +44,6 @@ function pub_gittag {
git tag $VER -m "$(cat ./CHANGELOG.tmp)"
# git remote add $SOURCE_ORIGIN https://hanxiao:${GITHUB_ACCESS_TOKEN}@github.com/gnes-ai/gnes.git
git push $SOURCE_ORIGIN $VER
rm ./CHANGELOG.tmp
}

function make_chore_pr {
@@ -53,19 +52,30 @@ function make_chore_pr {
git commit -m "chore(changelog): update change log to $1"
git push $SOURCE_ORIGIN chore-bumping-version --force
hub pull-request -m "chore(changelog): update change log to $1" --no-edit -l new-release -r gnes-ai/dev-core

make_wechat_push $1
rm ./CHANGELOG.tmp
git checkout master
}

function make_wechat_push {
export MSG_CONTENT=$(cat ./CHANGELOG.tmp | sed -e 's!(http\(s\)\{0,1\}://[^[:space:]][^]]*!!g' | sed 's/\[\[//g' | sed 's/\]\]//g')
export MSG_TITLE="# Release Note ($1)"
export MSG_LINK="https://github.com/gnes-ai/gnes/releases"

./shell/push-wechatwork.sh
}

function make_release_note {
git-release-notes $1..HEAD .github/release-template.ejs > ./CHANGELOG.tmp
printf '\n%s\n%s\n%s\n%s\n' "# Release Note (\`$2\`)" "> Release time: $(date +'%Y-%m-%d %H:%M:%S')" "$(cat ./CHANGELOG.tmp)" "$(cat ./CHANGELOG.md)" > ./CHANGELOG.md
}

BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [[ "$BRANCH" != "master" ]]; then
printf "You are not at master branch, exit\n";
exit 1;
fi
#BRANCH=$(git rev-parse --abbrev-ref HEAD)
#if [[ "$BRANCH" != "master" ]]; then
# printf "You are not at master branch, exit\n";
# exit 1;
#fi


#$(grep "$VER_TAG" $CLIENT_CODE | sed -n 's/^.*'\''\([^'\'']*\)'\''.*$/\1/p')
@@ -2,4 +2,4 @@

TEMPLATE="{\"msgtype\": \"markdown\", \"markdown\": {\"content\": \"# $MSG_TITLE\n > $MSG_CONTENT\n\n > 🔗 [$MSG_LINK]($MSG_LINK)\"}}"

echo $TEMPLATE | curl -s $BOT_URL -H 'Content-Type: application/json' --data-binary "@-"
echo "$TEMPLATE" | curl -s $BOT_URL -H 'Content-Type: application/json' --data-binary "@-"

0 comments on commit 736f605

Please sign in to comment.
You can’t perform that action at this time.