-
Notifications
You must be signed in to change notification settings - Fork 63
151 lines (129 loc) · 5.07 KB
/
az-ui-callsbot.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
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
149
150
151
name: Azure Domain build
on:
push:
branches:
- main
paths:
- "apps/ui/**"
# pull_request:
# types: [opened, synchronize, reopened, closed]
# branches:
# - main
jobs:
buid_deploy_job_dev:
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- uses: actions/setup-node@v2
with:
node-version: 18
- name: Setup yarn
run: npm install -g yarn
# Get yarn cache directory path
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
working-directory: apps/ui
# Cache yarn dependencies using the determined directory path
- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('apps/ui/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install
working-directory: apps/ui
- name: Build
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: yarn run build:callsbot
working-directory: apps/ui
- name: Postbuild
run: yarn run postbuild
working-directory: apps/ui
# - name: List dist contents
# run: ls -l apps/ui/dist
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_HAPPY_DUNE_05CDA6210 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurawtions - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/apps/ui/dist" # App source code path
# api_location: "" # Api source code path - optional
# output_location: "dist" # Built app content directory - optional
skip_app_build: true
###### End of Repository/Build Configurations ######
# buid_deploy_job_prod:
# needs: buid_deploy_job_dev
# environment: prod
# runs-on: ubuntu-latest
# name: Build and Deploy Job Prod
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: true
# lfs: false
# - uses: actions/setup-node@v2
# with:
# node-version: 18
# - name: Setup yarn
# run: npm install -g yarn
# # Get yarn cache directory path
# - name: Get yarn cache directory path
# id: yarn-cache-dir-path
# run: echo "::set-output name=dir::$(yarn cache dir)"
# working-directory: apps/ui
# # Cache yarn dependencies using the determined directory path
# - uses: actions/cache@v2
# with:
# path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
# key: ${{ runner.os }}-yarn-${{ hashFiles('apps/ui/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-
# - name: Install dependencies
# run: yarn install
# working-directory: apps/ui
# - name: Build
# env:
# NODE_OPTIONS: '--max_old_space_size=4096'
# run: yarn run build:prod
# working-directory: apps/ui
# - name: Postbuild
# run: yarn run postbuild
# working-directory: apps/ui
# # - name: List dist contents
# # run: ls -l apps/ui/dist
# - name: Build And Deploy
# id: builddeploy
# uses: Azure/static-web-apps-deploy@v1
# with:
# azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_THANKFUL_ISLAND_005734510 }}
# repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
# action: "upload"
# ###### Repository/Build Configurawtions - These values can be configured to match your app requirements. ######
# # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
# app_location: "/apps/ui/dist" # App source code path
# # api_location: "" # Api source code path - optional
# # output_location: "dist" # Built app content directory - optional
# skip_app_build: true
# ###### End of Repository/Build Configurations ######
# # close_pull_request_job:
# # if: github.event_name == 'pull_request' && github.event.action == 'closed'
# # runs-on: ubuntu-latest
# # name: Close Pull Request Job
# # steps:
# # - name: Close Pull Request
# # id: closepullrequest
# # uses: Azure/static-web-apps-deploy@v1
# # with:
# # azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_GROUND_069DB8E10 }}
# # action: "close"