-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (69 loc) · 2.06 KB
/
deploy-app.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
on: workflow_dispatch
name: Deploy App
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 8
- name: Build App Shell
shell: pwsh
working-directory: app-shell
run: |
npm install
npm run build
- name: Build Profile App
shell: pwsh
working-directory: profile
run: |
npm install
npm run build
- name: Build Catalog App
shell: pwsh
working-directory: catalog
run: dotnet publish src/CatalogApp -c Release -o dist
- name: Build Orders App
shell: pwsh
working-directory: orders
run: dotnet publish src/OrdersApp -c Release -o dist
- name: Deploy App Shell
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.APP_SHELL_DEPLOYMENT_TOKEN }}
action: upload
skip_app_build: true
skip_api_build: true
output_location: ''
app_location: app-shell/dist
- name: Deploy Profile App
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.PROFILE_APP_DEPLOYMENT_TOKEN }}
action: upload
skip_app_build: true
skip_api_build: true
output_location: ''
app_location: profile/dist
- name: Deploy Catalog App
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.CATALOG_APP_DEPLOYMENT_TOKEN }}
action: upload
skip_app_build: true
skip_api_build: true
output_location: ''
app_location: catalog/dist/wwwroot
- name: Deploy Orders App
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.ORDERS_APP_DEPLOYMENT_TOKEN }}
action: upload
skip_app_build: true
skip_api_build: true
output_location: ''
app_location: orders/dist/wwwroot