Skip to content

Commit aa030a4

Browse files
authored
Merge pull request #2 from WeihanLi/main
configure Azure Static Web Apps Deploy
2 parents 63a4e59 + dc60932 commit aa030a4

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Azure Static Web Apps Deploy
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- 'website/**'
10+
- '.github/workflows/az-swa-deploy.yml'
11+
12+
jobs:
13+
build_and_deploy_job:
14+
runs-on: ubuntu-latest
15+
name: Deploy
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Build And Deploy
19+
id: builddeploy
20+
uses: Azure/static-web-apps-deploy@v1
21+
with:
22+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
23+
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for GitHub integrations (i.e. PR comments)
24+
action: "upload"
25+
###### Repository/Build Configurations ######
26+
app_location: "website" # App source code path relative to repository root
27+
output_location: "build" # Built app content directory, relative to app_location - optional
28+
###### End of Repository/Build Configurations ######

0 commit comments

Comments
 (0)