|
|
@ -1,5 +1,5 @@
|
|
|
|
name: Azure Static Web Apps CI/CD
|
|
|
|
name: Azure Static Web Apps CI/CD
|
|
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
branches:
|
|
|
@ -11,10 +11,14 @@ on:
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
build_and_deploy_job:
|
|
|
|
build_and_deploy_job:
|
|
|
|
permissions:
|
|
|
|
|
|
|
|
actions: write
|
|
|
|
|
|
|
|
checks: none
|
|
|
|
|
|
|
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
|
|
|
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
|
|
|
|
actions: read
|
|
|
|
|
|
|
|
checks: write
|
|
|
|
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
deployments: read
|
|
|
|
|
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
security-events: write
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Build and Deploy Job
|
|
|
|
name: Build and Deploy Job
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|