-
Notifications
You must be signed in to change notification settings - Fork 15
28 lines (26 loc) · 946 Bytes
/
Copy pathaz-swa-deploy.yml
File metadata and controls
28 lines (26 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Azure Static Web Apps Deploy
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'website/**'
- '.github/workflows/az-swa-deploy.yml'
jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v4
- 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 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for GitHub integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations ######
app_location: "website" # App source code path relative to repository root
output_location: "build" # Built app content directory, relative to app_location - optional
###### End of Repository/Build Configurations ######