Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(gnesboard): fix cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Jul 17, 2019
1 parent 7b04697 commit 736f605
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
4 changes: 2 additions & 2 deletions gnes/resources/static/gnes-board.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -334,7 +334,7 @@
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/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({
Expand Down
22 changes: 16 additions & 6 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion shell/push-wechatwork.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.