-
-
Notifications
You must be signed in to change notification settings - Fork 115
59 lines (56 loc) · 2.21 KB
/
azure-static-web-apps-blue-field-0efe76003.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
name: Azure Static Web Apps CI/CD
on:
push:
branches:
- main
- dev
- next
jobs:
build_and_deploy_job_main:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
name: Build and Deploy Job [main]
steps:
- uses: actions/checkout@v4
with:
submodules: true
lfs: false
- 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_BLUE_FIELD_0EFE76003 }}
action: 'upload'
production_branch: 'main'
###### Repository/Build Configurations - 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_build_command: 'npm ci && npm run build && cd demo && npm ci && npm run generate'
app_location: '/'
output_location: 'demo/.output/public'
skip_api_build: true
###### End of Repository/Build Configurations ######
build_and_deploy_job_dev:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
name: Build and Deploy Job [dev]
steps:
- uses: actions/checkout@v4
with:
submodules: true
lfs: false
- 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_BLUE_FIELD_0EFE76003 }}
action: 'upload'
production_branch: 'main'
###### Repository/Build Configurations - 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_build_command: 'npm ci && npm run build && cd demo && npm ci && npm run generate'
app_location: '/'
output_location: 'demo/.output/public'
skip_api_build: true
###### End of Repository/Build Configurations ######
env:
NUXT_PUBLIC_ROBOTS: 'noindex, nofollow'