33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
name: Azure Static Web Apps CI/CD
|
|
|
|
pr:
|
|
branches:
|
|
include:
|
|
- develop
|
|
trigger:
|
|
branches:
|
|
include:
|
|
- 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-purple-forest-07b9d5300-variable-group
|
|
steps:
|
|
- checkout: self
|
|
submodules: true
|
|
- task: AzureStaticWebApp@0
|
|
inputs:
|
|
azure_static_web_apps_api_token: $(AZURE_STATIC_WEB_APPS_API_TOKEN_PURPLE_FOREST_07B9D5300)
|
|
###### 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
|
|
api_location: "" # Api source code path - optional
|
|
output_location: "" # Built app content directory - optional
|
|
###### End of Repository/Build Configurations ######
|
|
|