Skip to content

Commit

Permalink
feat: enhanced release script
Browse files Browse the repository at this point in the history
  • Loading branch information
gotev committed Mar 20, 2021
1 parent 388aac5 commit 73c1338
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion release
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
#!/bin/bash
#!/bin/bash -e
./gradlew clean publish bintrayUpload

version=$(cat manifest.gradle | grep "library_version" | tr "'" '\n' | head -n 2 | tail -n 1)

function generate-debug-apk {
cd app
./gradlew clean assembleDebug
cp demo/build/outputs/apk/debug/demo-debug.apk ../"recycler-adapter-demo-debug-$version.apk"
cd ..
}

generate-debug-apk

APK=$(ls *.apk | head -n 1)

hub release create -a "$APK" -m "$version" "$version"

0 comments on commit 73c1338

Please sign in to comment.