-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (60 loc) · 2.4 KB
/
build.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
name: Build
on:
push:
branches:
- stage
jobs:
build:
runs-on: self-hosted-mac
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Generate .env
run: chmod +x ./build-commands/generate-env.sh && ./build-commands/generate-env.sh ${GITHUB_REF##*/}
- name: Generate gradle.properties
run: chmod +x ./build-commands/gradle/generate-gradle-properties.sh && ./build-commands/gradle/generate-gradle-properties.sh
env:
MYAPP_UPLOAD_STORE_PASSWORD: ${{ secrets.MYAPP_UPLOAD_STORE_PASSWORD }}
MYAPP_UPLOAD_KEY_PASSWORD: ${{ secrets.MYAPP_UPLOAD_KEY_PASSWORD }}
- name: Install dependencies
run: yarn install
- name: Install pods
run: cd ios && pod install --repo-update
- name: Build App
run: cd ios && fastlane ios beta
env:
APP_IDENTIFIER: ${{ secrets.APP_IDENTIFIER }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APP_STORE_TEAM_ID: ${{ secrets.APP_STORE_TEAM_ID }}
DEVELOPER_TEAM_ID: ${{ secrets.DEVELOPER_TEAM_ID }}
GIT_REPO_URL: ${{ secrets.GIT_REPO_URL }}
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
CI_KEYCHAIN_NAME: ${{ secrets.CI_KEYCHAIN_NAME }}
CI_KEYCHAIN_PASSWORD: ${{ secrets.CI_KEYCHAIN_PASSWORD }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }}
APPLICATION_ID: ${{ secrets.APPLICATION_ID }}
APP_PROVISIONING_PROFILE_NAME: ${{ secrets.APP_PROVISIONING_PROFILE_NAME }}
PROJECT_NAME: ${{ secrets.PROJECT_NAME }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Increase build version
file_pattern: ios/*.xcodeproj
- uses: actions/setup-java@v1
with:
java-version: '11.0.3'
java-package: jdk
- uses: malinskiy/action-android/install-sdk@release/0.1.1
- name: Pack android app into .apk
run: cd android && fastlane android beta
- name: Upload .apk
uses: actions/upload-artifact@v2
with:
name: app-release.apk
path: android/app/build/outputs/apk/
retention-days: 1