-
Notifications
You must be signed in to change notification settings - Fork 4
60 lines (58 loc) · 1.93 KB
/
create_demo_apps.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
name: Create Demo Apps
on:
workflow_dispatch:
jobs:
openui5-sample-app:
runs-on: ubuntu-latest
steps:
- name: Checkout tools repo
uses: actions/checkout@v3
with:
repository: SAP/openui5-sample-app
- name: use node 16
uses: actions/setup-node@v2
with:
node-version: 16
- name: install
run: npm install
- name: build
run: npm run build-self-contained
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.azuresecret_openui5_sample_app }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
skip_api_build: true
skip_app_build: true
app_location: "dist" # App source code path
output_location: "" # Built app content directory - optional
is_static_export: true
ui5-typescript-helloworld:
runs-on: ubuntu-latest
steps:
- name: Checkout tools repo
uses: actions/checkout@v3
with:
repository: SAP-samples/ui5-typescript-helloworld
- name: use node 16
uses: actions/setup-node@v2
with:
node-version: 16
- name: install
run: npm install
- name: build
run: npm run build:opt
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.azuresecret_ui5_typescript_helloworld }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
skip_api_build: true
skip_app_build: true
app_location: "dist" # App source code path
output_location: "" # Built app content directory - optional
is_static_export: true