Melbourne, Australia
10 March 2018
I love to work with ionic framework because it gives me all I need as a fullstack dev plus development is much much faster, since I can see results in browser. Even when with native plugins i can easily inject mocks. I started this blog post many months ago :) but as always did not have time to finish it. But this time for better, Microsoft simplified builds a lot.
VSTS has amazing feature which allow to securely store files and variables. My build is using aliases for 3 files
And variables:
Files can be uploaded even before build is created. To do so go to VSTS choose your project -> Build and
releases -> Library -> Secure files
At this stage YAML builds are in preview so you need to enable them read more here.
First step would be to create build and choose source control (In this example I am using github, but in all my projects I prefer vsts source control its free for private projects)
Second step would be to choose YAML build</div>
Next step specify build name. For build agent choose hosted macOS (you can add external build instance if you wish, previously I used to use MacInCloud)
That is basically all we need to configure with build, last step is to add variables by clicking variables tab
After this hit save & queue and our build will start it will produce two artefacts with apk and ipa.
Go to release tab
Configure artefacts and by clicking .
Configure trigger
Press plus and search for Apple App Store release
Press plus and search for Google play release release
Now app is deployed to all stores.