Skip to content

Commit

Permalink
Merge pull request #2 from WeihanLi/main
Browse files Browse the repository at this point in the history
configure Azure Static Web Apps Deploy
  • Loading branch information
JusterZhu committed Mar 21, 2024
2 parents 63a4e59 + dc60932 commit aa030a4
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/az-swa-deploy.yml
@@ -0,0 +1,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 ######

0 comments on commit aa030a4

Please sign in to comment.