Skip to content

Commit

Permalink
fix(12558): fix readme (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
giladna authored Jan 6, 2023
1 parent 03d5348 commit 6cc05da
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
16 changes: 14 additions & 2 deletions .github/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ set_version() {

# Changing the version in version.gradle file
perl -pi -e "s/^ext.libVersion.*$/ext.libVersion = '$NEW_VERSION'/" $VERSION_FILE

# Changing the version in build.gradle file
if [[ "$RELEASE_TYPE" == "Patch" || "$RELEASE_TYPE" == "Update" ]]; then
echo "RELEASE_TYPE = '$RELEASE_TYPE'"
perl -pi -e "s/playkit:playkit:$PLAYKIT_PREV_VERSION/playkit:playkit:$NEW_VERSION/" $BUILD_GRADLE
fi
if [ "$RELEASE_TYPE" == "Full" ]; then
echo "RELEASE_TYPE = '$RELEASE_TYPE'"
perl -pi -e "s/:playkit-android:dev-SNAPSHOT/.playkit:playkit:$NEW_VERSION/" $BUILD_GRADLE
fi
}

build() {
Expand All @@ -48,6 +58,7 @@ release_and_tag() {
echo Releasing version $NEW_VERSION of $REPO_NAME to GitHub
set +e
git add $VERSION_FILE
git add $BUILD_GRADLE
git commit -m "Update version to $NEW_TAG"
set -e
git push origin HEAD:$BRANCH_NAME
Expand Down Expand Up @@ -75,7 +86,7 @@ EOF
JSON_BODY="$JSON_BODY$NEW_TAG\n\n"
JSON_BODY="$JSON_BODY * upgrade to $NEW_TAG\n\n"
JSON_BODY="$JSON_BODY #### Gradle\n\n"
JSON_BODY="$JSON_BODY * implementation 'com.kaltura.playkit:youbora"
JSON_BODY="$JSON_BODY * implementation 'com.kaltura.playkit:youboraplugin"
JSON_BODY="$NEW_VERSION"
JSON_BODY="$JSON_BODY'"

Expand Down Expand Up @@ -134,7 +145,7 @@ color=0072C6
},
{
"name": "Gradle line",
"value": "implementation 'com.kaltura.playkit:youbora:$COMMIT_SHA'"
"value": "implementation 'com.kaltura.playkit:youboraplugin:$COMMIT_SHA'"
}
]
}
Expand All @@ -161,6 +172,7 @@ EOF
export REPO_NAME=$REPO_NAME
MODULE_NAME=$MODULE_NAME
VERSION_FILE=$MODULE_NAME/version.gradle
BUILD_GRADLE=$MODULE_NAME/build.gradle

REPO_URL=https://github.com/kaltura/$REPO_NAME
export NEW_VERSION=$NEW_VERSION
Expand Down
2 changes: 1 addition & 1 deletion .github/release_notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ sed -i '/'"$newFeatures"'/a\
fi

echo "### Gradle" >> $RELEASE_NOTES
echo "$nl* \`implementation 'com.kaltura.playkit:youbora:$NEW_VERSION"\'\` >> $RELEASE_NOTES
echo "$nl* \`implementation 'com.kaltura.playkit:youboraplugin:$NEW_VERSION"\'\` >> $RELEASE_NOTES
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![CI Status](https://api.travis-ci.org/kaltura/playkit-android-youbora.svg?branch=develop)](https://travis-ci.org/github/kaltura/playkit-android-youbora)
[![CI Status](https://github.com/kaltura/playkit-android-youbora/actions/workflows/build.yml/badge.svg)](https://github.com/kaltura/playkit-android-youbora/actions/workflows/build.yml)
[![Download](https://img.shields.io/maven-central/v/com.kaltura.playkit/youboraplugin?label=Download)](https://search.maven.org/artifact/com.kaltura.playkit/youboraplugin)
[![License](https://img.shields.io/badge/license-AGPLv3-black.svg)](https://github.com/kaltura/playkit-android-kava/blob/master/LICENSE)
![Android](https://img.shields.io/badge/platform-android-green.svg)
Expand Down

0 comments on commit 6cc05da

Please sign in to comment.