-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-static-web-apps-proud-cliff-0a1355410.yml
41 lines (37 loc) · 1.44 KB
/
azure-static-web-apps-proud-cliff-0a1355410.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
name: Azure Static Web Apps CI/CD
#pr:
# branches:
# include:
# - main
trigger:
branches:
include:
- main
- develop
jobs:
- job: build_and_deploy_job
displayName: Build and Deploy Job
condition: or(eq(variables['Build.Reason'], 'Manual'),or(eq(variables['Build.Reason'], 'PullRequest'),eq(variables['Build.Reason'], 'IndividualCI')))
pool:
vmImage: ubuntu-latest
variables:
- group: Azure-Static-Web-Apps-proud-cliff-0a1355410-variable-group # Ensure this variable group has envs set: FONTAWESOME_TOKEN, GITHUB_TOKEN
steps:
- checkout: self
submodules: true
- task: AzureStaticWebApp@0
env:
CI: false
NPM_CONFIG_USERCONFIG: ./.ci/.npmrc
FONTAWESOME_TOKEN: $(FONTAWESOME_TOKEN)
GITHUB_TOKEN: $(GITHUB_TOKEN)
inputs:
azure_static_web_apps_api_token: $(AZURE_STATIC_WEB_APPS_API_TOKEN_PROUD_CLIFF_0A1355410)
###### 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_location: "/" # App source code path
app_build_command: 'bash .ci/build.sh'
api_location: "" # Api source code path - optional
output_location: "build" # Built app content directory - optional
production_branch: 'main'
###### End of Repository/Build Configurations ######