Skip to content

Commit 14eac62

Browse files
committed
Update static-web-app.yml for debugging and deployment
Added debugging steps to the `Publish app` job to display directory structures and check for `index.html`. Updated `Azure/static-web-apps-deploy` action to replace `output_location` with `app_artifact_location` for correct static file deployment. Adjusted comments for clarity.
1 parent a523ca9 commit 14eac62

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/static-web-app.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242

4343
- name: Show published files (debug)
4444
run: |
45+
echo "repo root tree (top-level):"
46+
ls -la .
4547
echo "build folder tree:"
4648
ls -la build || true
4749
echo "build/wwwroot tree:"
@@ -56,9 +58,9 @@ jobs:
5658
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_GRAY_WAVE_0E4848710 }}
5759
repo_token: ${{ secrets.GITHUB_TOKEN }}
5860
action: "upload"
59-
app_location: "." # point to repository root (not the project folder)
61+
app_location: "." # repository root
6062
skip_app_build: true # we already produced the build on runner
61-
output_location: "build/wwwroot" # point to the published static files
63+
app_artifact_location: "build/wwwroot" # <-- IMPORTANT: point to the published static files
6264

6365
close_pull_request_job:
6466
if: github.event_name == 'pull_request' && github.event.action == 'closed'

0 commit comments

Comments
 (0)