forked from kobiton/upload-mobile-app-github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
46 lines (46 loc) · 1.49 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: 'Kobiton - Upload Mobile App'
author: 'Kobiton'
description: 'Github action to upload an mobile app file to Kobiton Apps Repo'
inputs:
kobi_username:
description: The user in Kobiton
required: true
kobi_api_key:
description: Specific key to access Kobiton API
required: true
upload_app_id:
description: App ID in Kobiton - use this in case you want to upload new version of an existing app in Kobiton
required: false
app_access:
description: You can either make this app private or available for everyone in the organization (private vs. public)
required: true
default: 'public'
app_name:
description: Title of the app to be built
required: true
default: 'App-test-name'
app_path:
description: Path to the app .apk or .ipa file (relative to your current point)
required: true
app_suffix:
description: Type of the app to be uploaded (apk for Android or ipa for iOS)
required: true
default: 'apk'
runs:
using: 'composite'
steps:
- run: |
chmod u+x ${{ github.action_path }}/upload.sh
${{ github.action_path }}/upload.sh
shell: bash
env:
KOBI_USERNAME: ${{ inputs.kobi_username }}
KOBI_API_KEY: ${{ inputs.kobi_api_key }}
UPLOAD_APP_ID: ${{ inputs.upload_app_id }}
APP_ACCESS: ${{ inputs.app_access }}
APP_NAME: ${{ inputs.app_name }}
APP_PATH: ${{ inputs.app_path }}
APP_SUFFIX: ${{ inputs.app_suffix }}
branding:
color: purple
icon: upload