-
Notifications
You must be signed in to change notification settings - Fork 21
/
action.yml
116 lines (115 loc) · 3.82 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: "Build Android App"
author: "SparkFabrik"
branding:
icon: "smartphone"
color: "green"
description: "Build Android (gradle), export .apk or .aab, optional upload to Play Store, optional upload to BrowserStack App Live."
inputs:
build-type:
description: "You can build an unsigned APK (assemble) or a signed AAB (bundle)."
required: false
default: "assemble"
gradle-task:
description: "Name of the gradle task to exec (eg. assembleDebug, assembleRelease, bundleRelease)"
required: false
default: "assembleDebug"
increment-build-number:
description: "Increment build number"
required: false
default: false
package-name:
description: "Package name"
required: false
keystore-content:
description: "Keystore file content as base64 encoded string"
required: false
keystore-password:
description: "Keystore password"
required: false
keystore-alias:
description: "Keystore alias"
required: false
json-key-data:
description: "JSON keystore file content"
required: false
upload-to-play-store:
description: "Upload to Play Store"
required: false
default: false
project-path:
description: "Project path"
required: true
output-path:
description: "Output path of the build"
required: false
default: "output.apk"
browserstack-upload:
description: "Boolean to tell the Action to upload the .ipa to Browserstack App Live after the build."
required: false
default: false
browserstack-username:
description: "Browserstack username (required if browserstack-upload == true)"
required: false
default: ""
browserstack-access-key:
description: "Browserstack access key (required if browserstack-upload == true)"
required: false
default: ""
fastlane-env:
description: "Name of the env file name to pass to fastlane --env"
required: false
ruby-version:
description: "Specify the Ruby version you wish to use"
required: false
default: "head"
bundler-version:
description: "Specify the Bundler version you wish to use"
default: "2.3"
required: false
fastlane-version:
description: "Specify the Fastlane version you wish to use"
default: "2.213.0"
required: false
release-track:
description: "Release track to target"
default: "internal"
required: false
release-status:
description: "Status of the release"
default: "draft"
required: false
runs:
using: "composite"
steps:
- id: "SETUP_RUBY"
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ inputs.ruby-version }}
bundler: ${{ inputs.bundler-version }}
- id: "SETUP_NODE"
uses: actions/setup-node@v3
with:
node-version: 16
- id: "RUN_INDEX"
env:
BUILD_TYPE: ${{ inputs.build-type }}
GRADLE_TASK: ${{ inputs.gradle-task }}
INCREMENT_BUILD_NUMBER: ${{ inputs.increment-build-number }}
PACKAGE_NAME: ${{ inputs.package-name }}
KEYSTORE_CONTENT: ${{ inputs.keystore-content }}
KEYSTORE_PASSWORD: ${{ inputs.keystore-password }}
KEYSTORE_ALIAS: ${{ inputs.keystore-alias }}
JSON_KEY_DATA: ${{ inputs.json-key-data }}
UPLOAD_TO_PLAY_STORE: ${{ inputs.upload-to-play-store }}
PROJECT_PATH: ${{ inputs.project-path }}
OUTPUT_PATH: ${{ inputs.output-path }}
BROWSERSTACK_UPLOAD: ${{ inputs.browserstack-upload }}
BROWSERSTACK_USERNAME: ${{ inputs.browserstack-username }}
BROWSERSTACK_ACCESS_KEY: ${{ inputs.browserstack-access-key }}
FASTLANE_VERSION: ${{ inputs.fastlane-version }}
FASTLANE_ENV: ${{ inputs.fastlane-env }}
RELEASE_TRACK: ${{ inputs.release-track }}
RELEASE_STATUS: ${{ inputs.release-status }}
ACTION_PATH: ${{ github.action_path }}
run: . ${{ github.action_path }}/build.sh
shell: sh