|
23 | 23 | # VALIDATE CLIENT VERSIONS #
|
24 | 24 | ##############################
|
25 | 25 |
|
26 |
| -#VERSION=$(grep version pom.xml |head -2|tail -1|awk -F '>' '{print $2}'|awk -F '<' '{print $1}'|awk -F '-' '{print $1}') |
27 | 26 | VERSION=$(grep versionName library/build.gradle | awk '{print $2}' | awk '{split($0, a, "\"")}{print a[2]}')
|
28 | 27 | read -p "We are releasing $VERSION, is this correct? (press enter to continue) " DERP
|
29 | 28 | if [[ ! -z $DERP ]]; then
|
|
45 | 44 | # exit 1
|
46 | 45 | #fi
|
47 | 46 |
|
| 47 | +########################## |
| 48 | +# GENERATE RELEASE BUILD # |
| 49 | +########################## |
| 50 | + |
| 51 | +#gradle clean assembleRelease generateReleaseJavadoc |
| 52 | +gradle clean assembleRelease |
| 53 | + |
48 | 54 | ###################
|
49 | 55 | # DEPLOY TO MAVEN #
|
50 | 56 | ###################
|
51 | 57 | read -p "Next, make sure this repo is clean and up to date. We will be kicking off a deploy to maven." DERP
|
52 |
| -mvn clean |
53 |
| -mvn release:clean release:prepare release:perform -Dtag=v$VERSION |
| 58 | +#mvn clean |
| 59 | +#mvn release:clean release:prepare release:perform -Dtag=v$VERSION |
| 60 | +#mvn install:install-file -Dfile=/Users/puf/Github/FirebaseUI-Android/library/build/outputs/aar/library-release.aar -DgroupId=com.firebase -DartifactId=firebase-ui -Dversion=0.0.3 -Dpackaging=aar |
| 61 | + |
54 | 62 |
|
55 | 63 | if [[ $? -ne 0 ]]; then
|
56 | 64 | echo "error: Error building and releasing to maven."
|
|
64 | 72 | # Push the new git tag created by Maven
|
65 | 73 | git push --tags
|
66 | 74 | if [[ $? -ne 0 ]]; then
|
67 |
| - echo "Error: Failed to do 'git push --tags' from geofire repo." |
| 75 | + echo "Error: Failed to do 'git push --tags' from FirebaseUI-Android repo." |
68 | 76 | exit 1
|
69 | 77 | fi
|
70 | 78 |
|
|
75 | 83 | echo "Manual steps:"
|
76 | 84 | echo " 1) release maven repo at http://oss.sonatype.org/"
|
77 | 85 | echo " 2) Deploy new docs: $> firebase deploy"
|
78 |
| -echo " 3) Update the release notes for FirebaseUI-Android version ${VERSION} on GitHub and add jars for downloading" |
| 86 | +echo " 3) Update the release notes for FirebaseUI-Android version ${VERSION} on GitHub and add aar for downloading" |
79 | 87 | echo " 4) Update firebase-versions.json in the firebase-clients repo with the changelog information"
|
80 | 88 | echo " 5) Tweet @FirebaseRelease: 'v${VERSION} of FirebaseUI-Android is available https://github.com/firebase/FirebaseUI-Android"
|
81 | 89 | echo ---
|
|
0 commit comments