-
Notifications
You must be signed in to change notification settings - Fork 15
66 lines (54 loc) · 1.79 KB
/
live-update.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
name: Deploy Live Update
on:
workflow_dispatch
jobs:
staging-live-update:
runs-on: ubuntu-latest
steps:
- name: Deploy live update to staging
uses: ionic-team/appflow-build@v1
with:
token: ${{ secrets.APPFLOW_TOKEN }}
app-id: 32316914
platform: Web
environment: staging
destinations: Staging
- 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: C017C400V37
slack-text: Live update deployed for branch `${{ steps.get-branch.outputs._1 }}` on Staging.
prod-live-update:
runs-on: ubuntu-latest
environment: Production
needs: staging-live-update
steps:
- name: Deploy live update to production
uses: ionic-team/appflow-build@v1
with:
token: ${{ secrets.APPFLOW_TOKEN }}
app-id: 32316914
platform: Web
environment: production
destinations: Production
- 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: C017C400V37
slack-text: Live update deployed for branch `${{ steps.get-branch.outputs._1 }}` on Production.