๐Ÿ“ฆ ionic-team / appflow-build

GitHub Action for triggering Appflow Builds

โ˜… 58 stars โ‘‚ 14 forks ๐Ÿ‘ 58 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/ionic-team/appflow-build.git
HTTPS git clone https://github.com/ionic-team/appflow-build.git
SSH git clone git@github.com:ionic-team/appflow-build.git
CLI gh repo clone ionic-team/appflow-build
smzelek smzelek Merge pull request #293 from ionic-team/patch-deprecations b03688b 1 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ __tests__
๐Ÿ“ .github
๐Ÿ“ dist
๐Ÿ“ src
๐Ÿ“„ .gitattributes
๐Ÿ“„ .gitignore
๐Ÿ“„ .prettierignore
๐Ÿ“„ .prettierrc.json
๐Ÿ“„ action.yml
๐Ÿ“„ jest.config.js
๐Ÿ“„ LICENSE
๐Ÿ“„ package-lock.json
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ tsconfig.json
๐Ÿ“„ README.md

Appflow Build Action for GitHub Actions

License: MIT

Trigger Appflow Capacitor & Cordova Mobile Builds.

Usage

Live Update

- name: Build Live Update on Appflow
  uses: ionic-team/appflow-build@v1
  with:
    token: ${{ secrets.APPFLOW_TOKEN }}
    app-id: abcdef12
    platform: Web
    environment: MyEnvironment

iOS & Android Builds Require a paid subscription to Appflow

iOS

- name: Build iOS on Appflow
  uses: ionic-team/appflow-build@v1
  with:
    token: ${{ secrets.APPFLOW_TOKEN }}
    app-id: abcdef12
    platform: iOS
    build-type: ad-hoc
    certificate: MyCertificate
    environment: MyEnvironment
    upload-artifact: iOS-Build.zip

Android

- name: Build Android on Appflow
  uses: ionic-team/appflow-build@v1
  with:
    token: ${{ secrets.APPFLOW_TOKEN }}
    app-id: abcdef12
    platform: Android
    build-type: debug
    environment: MyEnvironment
    upload-artifact: Android-Build.zip

For the action to work you will need to connect your Appflow app to GitHub in the Appflow dashboard.

The action can build iOS & Android binaries for Capacitor & Cordova apps using Appflow from any type of runner. You can easily use the Appflow Dashboard to setup your application and use this action to run you builds & upload them as artifacts to GitHub.

See action.yml for the full documentation for this action's inputs and outputs.

You can learn more about how to configure your build in the Appflow docs

Authentication

You will need a token to authenticate with Appflow. The easiest way to get your token is to use the Ionic CLI to login & retrieve the token.

To login type:

npm i -g @ionic/cli
ionic login

Then you can use the following command to see your token:

ionic config get -g tokens.user

Prevent the CLI from invalidating the token:

ionic config unset -g tokens.refresh
ionic config unset -g tokens.user

License

MIT