Skip to content

Commit

Permalink
Merge pull request #5 from matrix-org/langleyd/fix_release_script
Browse files Browse the repository at this point in the history
Fix android version, update name of script to update android version …
  • Loading branch information
langleyd authored Aug 10, 2023
2 parents 981c313 + e1df888 commit d282b95
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: 👊 Sync the version with android
run: |
./sync_android_version.sh ${{ env.NEW_VERSION }}
./scripts/update_android_version.sh ${{ env.NEW_VERSION }}
- name: 👊 Commit the version
run: |
Expand Down
2 changes: 1 addition & 1 deletion platforms/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RELEASE_SIGNING_ENABLED=true

GROUP=io.element.android
POM_ARTIFACT_ID=emojibase-bindings
VERSION_NAME=0.0.1
VERSION_NAME=1.0.0

POM_NAME=Emojibase Bindings
POM_DESCRIPTION=Packages emojibase bindings for iOS and Android
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ else
SED_CMD="sed -i"
fi

SCRIPT_PATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"

VERSION=$1

GRADLE_PROPERTIES_REGEX="s/^VERSION_NAME=.*$/VERSION_NAME=$VERSION/g"

echo "Updating Android"
$SED_CMD "$GRADLE_PROPERTIES_REGEX" $SCRIPT_PATH/platforms/android/gradle.properties
$SED_CMD "$GRADLE_PROPERTIES_REGEX" ./platforms/android/gradle.properties

0 comments on commit d282b95

Please sign in to comment.