Skip to content
code

GitHub Action

Setup Ionic

v1.0.4 Latest version

Setup Ionic

code

Setup Ionic

Set up your GitHub Actions workflow with Cordova/Ionic environment. Only supports macos & ubuntu at this time

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Ionic

uses: coturiv/[email protected]

Learn more about this action in coturiv/setup-ionic

Choose a version

setup-ionic

Set up your GitHub Actions workflow with Cordova/Ionic environment. Only supports macos & ubuntu at this time.

example usage:

- name: Use coturiv/setup-ionic
  uses: coturiv/setup-ionic@v1
  with:
    java-version: 8
- name: Use coturiv/setup-ionic
  uses: coturiv/setup-ionic@v1
  with:
    cordova-version: 8

- name: Build
  run: |
    ionic cordova build android --prod

important*

From Ubuntu 20.04 runners, the default version of Java is 11, so you need to specify it to 8(1.8), due to the requirement of cordova, but will be removed in future releases. See here, and here

- name: Set up JDK 1.8
  uses: actions/setup-java@v1
  with:
    java-version: 1.8