-
Notifications
You must be signed in to change notification settings - Fork 213
174 lines (144 loc) · 4.69 KB
/
cd.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# Builds and publishes examples to GH pages
name: CD
on:
push:
branches:
- master
- fix-cd
env:
NODE_OPTIONS: --max_old_space_size=6144
jobs:
general-examples:
runs-on: ubuntu-latest
permissions:
id-token: write # Required by Akeyless
contents: read
packages: read
steps:
- name: Import Secrets
id: import-secrets
uses: LanceMcCarthy/akeyless-action@v3
with:
access-id: ${{ secrets.GH_AKEYLESS_ACCESS_ID }}
static-secrets: '{ "/WebComponents/prod/tokens/GH_TOKEN": "GH_TOKEN" }'
export-secrets-to-environment: false
- name: Use NodeJS v14
uses: actions/setup-node@v4
with:
node-version: "14"
- name: Check out repository
uses: actions/checkout@v4
- name: Build general examples
working-directory: ./examples
run: |
npm ci
npm run lint
npm run build-all
- name: Build
working-directory: ./examples
run: ./bin/build-gh-pages
env:
KENDO_UI_LICENSE: ${{ secrets.KENDO_UI_LICENSE }}
# - name: Deploy to GH Pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ steps.import-secrets.outputs.GH_TOKEN }}
# publish_dir: ./examples/dist
# user_name: "kendo-bot"
# user_email: "kendouiteam@progress.com"
standalone-examples-node18:
runs-on: ubuntu-latest
permissions:
id-token: write # Required by Akeyless
contents: read
packages: read
steps:
- name: Import Secrets
id: import-secrets
uses: LanceMcCarthy/akeyless-action@v3
with:
access-id: ${{ secrets.GH_AKEYLESS_ACCESS_ID }}
static-secrets: '{ "/WebComponents/prod/tokens/GH_TOKEN": "GH_TOKEN" }'
export-secrets-to-environment: false
- name: Use NodeJS v18
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Check out repository
uses: actions/checkout@v4
- name: Build Coffee warehouse app
working-directory: ./examples-standalone/coffee-warehouse
run: |
npm ci
npm run build
- name: Build Finance portfolio app
working-directory: ./examples-standalone/finance-portfolio
run: |
npm ci
- name: Build Electron dashboard app
working-directory: ./examples-standalone/electron-dashboard
run: |
npm ci
npm rebuild node-sass
npm run build
- name: Build Grid & Charts integration app
working-directory: ./examples-standalone/grid-charts-integration
run: |
npm ci
# npm run lint
- name: Build Grid Live Data app
working-directory: ./examples-standalone/grid-live-data
run: |
npm ci
npm run build
- name: Spreadsheet Event Budgeting app
working-directory: ./examples-standalone/spreadsheet-event-budgeting
run: |
npm ci
npm run build
# - name: Deploy to GH Pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ steps.import-secrets.outputs.GH_TOKEN }}
# publish_dir: ./examples/dist
# user_name: "kendo-bot"
# user_email: "kendouiteam@progress.com"
standalone-examples-node14:
runs-on: ubuntu-latest
steps:
- name: Use NodeJS v14
uses: actions/setup-node@v4
with:
node-version: "14"
- name: Check out repository
uses: actions/checkout@v4
- name: Build Angular Universal Node example
working-directory: ./examples-standalone/angular-universal/node_sample_application
run: |
npm ci
npm run lint
- name: Build Angular Universal ASP.NET core example
working-directory: ./examples-standalone/angular-universal/aspnet_core_sample_application/ClientApp
run: |
npm ci
npm run lint
- name: Build ASP.NET Core Data client app
working-directory: ./examples-standalone/aspnetcore-data/ClientApp
run: |
npm ci
npm run lint
- name: Build ASP.NET Core Upload client app
working-directory: ./examples-standalone/aspnetcore-upload/ClientApp
run: |
npm ci
# npm run lint
- name: Build ASP.NET Web API client app
working-directory: ./examples-standalone/aspnetwebapi-data/ClientApp
run: |
npm ci
npm run lint
- name: Build Dialogflow app
working-directory: ./examples-standalone/dialogflow-integration/client
run: |
npm ci
npm run build