This repository has been archived by the owner on Jun 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
# $GITHUB_PERSONAL_TOKEN The personal access token of your github Account(https://github.com/settings/tokens), which should have write priviledge to [email protected]:apache/incubator-weex.git . The personal access token is used to publish Github Release | ||
# $JCENTER_TOKEN The private key for JCenter (https://bintray.com/alibabaweex/maven/weex_sdk/), which is the distribution channel for Android | ||
|
||
# Prepare RELEASE_NOTE.md | ||
echo "Prepare RELEASE_NOTE.md" | ||
rm -f commit-history.log | ||
git log --pretty=format:"%s %h" --no-merges "$3"..HEAD > commit-history.log | ||
sed -i '' 's/^*//' commit-history.log | ||
|
@@ -38,7 +38,7 @@ sed -i '' -e '1i \ | |
# Detail Commit' commit-history.log | ||
cat CHANGELOG.md commit-history.log > RELEASE_NOTE.md | ||
|
||
# Publish source file or release to Apache SVN server | ||
echo "Publish source file to Apache SVN server" | ||
if [ ! -d "${TMPDIR}weex_release" ] | ||
then | ||
svn checkout https://dist.apache.org/repos/dist/release/incubator/weex/ "${TMPDIR}weex_release" | ||
|
@@ -51,14 +51,16 @@ cd .. | |
svn add "$1" | ||
svn commit -m "Release ${1}" | ||
|
||
# Publish to Github Release | ||
echo "Push Git Tag to Github Repo" | ||
git tag -a -F "RELEASE_NOTE.md" "$1" | ||
git push "$4" "$1" | ||
|
||
echo "Publish Github Release" | ||
npm install -g release-it | ||
export GITHUB_TOKEN="$5" | ||
release-it --no-npm --no-git.commit --no-git.requireCleanWorkingDir --git.tagName="$1" --git.tagAnnotation='"$(cat RELEASE_NOTE.md)"' --git.tagArgs="--cleanup=verbatim" --git.pushRepo="$4" --github.release --github.releaseName="$1" --github.releaseNotes="cat RELEASE_NOTE.md" | ||
release-it --ci --no-npm --no-increment --no-git.requireCleanWorkingDir --no-git.commit --no-git.tag --no-git.push --git.pushRepo="$4" --github.release --github.releaseName="$1" --github.releaseNotes="cat RELEASE_NOTE.md" | ||
|
||
# Publish Android to JCenter | ||
echo "Publish Android JCenter Release" | ||
cd android | ||
./gradlew clean install bintray -PbuildRuntimeApi=true -PignoreVersionCheck="true" -Pweexversion="$1" -PbintrayUser=alibabaweex -PbintrayApiKey="$6" | ||
|
||
|