Of late I have been delving into phonegap apps. After building the debug apk file using command line tool cordova build android, I always forget the steps to build the release apk file which can be uploaded in Google Play store. So I decided to write the steps in my blog for future reference. Here are the steps in a nut-shell :-
1) phonegap build android
2) cd platforms/android
3) export ANDROID_HOME = [path to android sdk]
4) ant release
5) cd bin
The release apk file is located inside the bin folder. This can uploaded to Google Play Store.
Please note that for upgrading a published app, you need to change the version in config.xml file of your cordova app.
Hope this post helps someone.