Automatically build Android APK for Ionic 3 project stored in GitLab

Setup GitLab CI. Your configuration file will look something like this

Optionally put a link to file in your README.md that will look like

https://gitlab.com/YOUR_ORGANIZATION_NAME/YOUR_PROJECT_NAME/builds/artifacts/master/raw/platforms/android/build/outputs/apk/android-debug.apk?job=build_android

5 thoughts on “Automatically build Android APK for Ionic 3 project stored in GitLab”

    1. will this work? and then access it to my username.gitlab.io/projectname? I have try it but does not work.
      build_android:
      stage: deploy
      only:
      – master
      script:
      – npm i
      – ionic build –prod
      – ls ./www
      – mkdir ./public
      – mv ./www ./public
      – ls ./public
      artifacts:
      paths:
      – public

Leave a Reply

Your email address will not be published. Required fields are marked *