-
Notifications
You must be signed in to change notification settings - Fork 15
80 lines (69 loc) · 2.12 KB
/
appflow-master.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
name: Appflow Master
on:
push:
branches: [master]
jobs:
build-app:
runs-on: ubuntu-latest
steps:
- name: Build Android with Appflow
uses: ionic-team/appflow-build@v1
with:
token: ${{ secrets.APPFLOW_TOKEN }}
app-id: 32316914
platform: Android
build-type: debug
environment: staging
native-config: staging
upload-artifact: Android
- uses: actions/download-artifact@v3
id: download
with:
name: 'Android'
path: ./
- name: Rename file
run: mv *.apk android.apk
- name: Upload apk to Diawi
uses: rnkdsh/[email protected]
id: diwaiAndroid
with:
token: ${{ secrets.DIAWI_TOKEN }}
file: android.apk
- name: Build iOS on Appflow
uses: ionic-team/appflow-build@v1
with:
token: ${{ secrets.APPFLOW_TOKEN }}
app-id: 32316914
platform: iOS
build-type: development
build-stack: macOS - 2024.04 - Apple silicon
certificate: Fyle signing
environment: staging
native-config: prod
upload-artifact: ios
- uses: actions/download-artifact@v3
id: ios
with:
name: 'ios'
path: ./
- name: Rename file
run: mv *.ipa ios.ipa
- name: Upload ipa to diawi
uses: rnkdsh/[email protected]
id: diwaiIos
with:
token: ${{ secrets.DIAWI_TOKEN }}
file: ios.ipa
- name: Get branch name
id: get-branch
uses: xom9ikk/split@v1
with:
string: ${{ github.ref }}
separator: refs/heads/
- name: Send Message to Slack
uses: archive/[email protected]
id: notify
with:
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
slack-channel: C029QPGHSQL
slack-text: ${{github.event.sender.login}} merged to master. \r\n \r\n APK Link ${{steps.diwaiAndroid.outputs.url}} \r\n IPA link ${{steps.diwaiIos.outputs.url}}