ci: add Azure Static Web Apps workflow file
on-behalf-of: @Azure opensource@microsoft.com
This commit is contained in:
parent
890b004a9c
commit
85b8ab0919
32
azure-static-web-apps-purple-forest-07b9d5300.yml
Normal file
32
azure-static-web-apps-purple-forest-07b9d5300.yml
Normal file
@ -0,0 +1,32 @@
|
||||
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 ######
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user