Skip to content

Azure Static Web Apps CI/CD #5

Azure Static Web Apps CI/CD

Azure Static Web Apps CI/CD #5

name: Azure Static Web Apps CI/CD
on:
push:
branches:
- main
paths:
- 'src/Training.AirBnb.Clone.Frontend/**'
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
paths:
- 'src/Training.AirBnb.Clone.Frontend/**'
workflow_dispatch:
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
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_ZEALOUS_FLOWER_09E828A0F }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"
app_location: "./src/Training.AirBnb.Clone.Frontend"
output_location: "dist"