|
|
|
@ -3,7 +3,11 @@ name: Azure Static Web Apps CI/CD
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches:
|
|
|
|
|
- main
|
|
|
|
|
- quiz-app-fix
|
|
|
|
|
pull_request:
|
|
|
|
|
types: [opened, synchronize, reopened, closed]
|
|
|
|
|
branches:
|
|
|
|
|
- quiz-app-fix
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build_and_deploy_job:
|
|
|
|
@ -18,7 +22,7 @@ jobs:
|
|
|
|
|
id: builddeploy
|
|
|
|
|
uses: Azure/static-web-apps-deploy@v1
|
|
|
|
|
with:
|
|
|
|
|
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_RED_WATER_0103E7A0F }}
|
|
|
|
|
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_RED_BAY_0A991EC0F }}
|
|
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
|
|
|
|
|
action: "upload"
|
|
|
|
|
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
|
|
|
|
@ -37,5 +41,5 @@ jobs:
|
|
|
|
|
id: closepullrequest
|
|
|
|
|
uses: Azure/static-web-apps-deploy@v1
|
|
|
|
|
with:
|
|
|
|
|
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_RED_WATER_0103E7A0F }}
|
|
|
|
|
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_RED_BAY_0A991EC0F }}
|
|
|
|
|
action: "close"
|
|
|
|
|