message: Build and upload site as a build artifact
diff: name: 'Azure Static Web App (agreeable-hill)'
  on:
  - pull_request:
  - types: [opened, synchronize, reopened, closed]
  - branches:
  - - main
  - paths:
  - - 'docs/**'
  repository_dispatch:
  # all types
  workflow_dispatch:
  @@ -83,3 +77,16 @@ jobs:
  # api_location: "api" # Api source code path - optional
  app_artifact_location: "public" # Built app content directory - optional
  ###### End of Repository/Build Configurations ######
  +
  + # This step may not be strictly needed; it's not clear if ASWA builds locally and leaves the build artifacts
  + - name: Build site artifact
  + run: |
  + cd $GITHUB_WORKSPACE/docs
  + npm ci
  + npm run build
  +
  + - name: Archive site artifact
  + uses: actions/upload-artifact@v2
  + with:
  + name: fluidframework-site
  + path: docs/public
  