-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathdeploy-feature-azure-webapps.yml
More file actions
148 lines (142 loc) · 4.61 KB
/
deploy-feature-azure-webapps.yml
File metadata and controls
148 lines (142 loc) · 4.61 KB
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
name: Deploy feature validation samples
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
flavor:
description: 'Build flavor to deploy (beta-release or stable)'
type: choice
required: true
default: beta-release
options:
- beta-release
- stable
# cancel workflow when a newer version of the workflow is triggered on the same github ref
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
jobs:
calling:
name: Build and Deploy Calling App
runs-on: ${{ vars.RUNS_ON }}
permissions:
# Needed for Azure login
id-token: write
environment: staging
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install rush
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
- name: Install dependencies
run: rush install
- name: Switch flavor
run: rush switch-flavor:${{ inputs.flavor }}
- name: Build Communication-react
run: rush build -t @azure/communication-react
- name: Build Server
run: rush build -o server
- name: Build Calling
run: rush build -o calling
- name: Package Calling App
run: rushx package
working-directory: ./samples/Calling
- name: Log in with Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy Calling
uses: azure/webapps-deploy@v3
with:
app-name: acs-ui-dev-web-call-feature-validation
package: ./samples/Calling/dist
chat:
name: Build and Deploy Chat App
runs-on: ${{ vars.RUNS_ON }}
permissions:
# Needed for Azure login
id-token: write
environment: staging
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install rush
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
- name: Install dependencies
run: rush install
- name: Switch flavor
run: rush switch-flavor:${{ inputs.flavor }}
- name: Build Communication-react
run: rush build -t @azure/communication-react
- name: Build Server
run: rush build -o server
- name: Build Chat
run: rush build -o chat
- name: Package Chat App
run: rushx package
working-directory: ./samples/Chat
- name: Log in with Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy Chat
uses: azure/webapps-deploy@v3
with:
app-name: acs-ui-dev-web-chat-feature-validation
package: ./samples/Chat/dist
callwithchat:
name: Build and Deploy CallWithChat App
runs-on: ${{ vars.RUNS_ON }}
permissions:
# Needed for Azure login
id-token: write
environment: staging
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install rush
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
- name: Install dependencies
run: rush install
- name: Switch flavor
run: rush switch-flavor:${{ inputs.flavor }}
- name: Build Communication-react
run: rush build -t @azure/communication-react
- name: Build Server
run: rush build -o server
- name: Build CallWithChat
run: rush build -o callwithchat
- name: Package CallWithChat Sample Artifact
run: rushx package
working-directory: ./samples/CallWithChat
- name: Log in with Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy CallWithChat
uses: azure/webapps-deploy@v3
with:
app-name: acs-ui-dev-web-callwithchat-feature-validation
package: ./samples/CallWithChat/dist