Azure / Azure/static-web-apps

Build and Deploy Job Failed

Open
#1,588 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

.So i'm using GitHub actions to CI CD to Azure. My app has frontend(angular) and backend(django) directories each so decided to run the backend on an azure app service and the angular frontend on an azure static web app but after connecting my frontend service to my github repo, the workflow was created and ran but it keeps failing on the "Build and Deploy Job". Below is the log :

```
Run Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ***
action: upload
app_location: frontend
output_location: dist/frontend
github_id_token: ***
skip_app_build: true
/usr/bin/docker run --name bdc3e63db450cc4[2](https://github.com/Workmayte/workmayte/actions/runs/12141072101/job/33852294191#step:6:2)26bb0ca8[3](https://github.com/Workmayte/workmayte/actions/runs/12141072101/job/33852294191#step:6:3)0357b4143_b3ad22 --label 9404bd --workdir /github/workspace --rm -e "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN" -e "INPUT_ACTION" -e "INPUT_APP_LOCATION" -e "INPUT_API_LOCATION" -e "INPUT_OUTPUT_LOCATION" -e "INPUT_GITHUB_ID_TOKEN" -e "INPUT_SKIP_APP_BUILD" -e "INPUT_API_BUILD_COMMAND" -e "INPUT_APP_ARTIFACT_LOCATION" -e "INPUT_APP_BUILD_COMMAND" -e "INPUT_REPO_TOKEN" -e "INPUT_ROUTES_LOCATION" -e "INPUT_CONFIG_FILE_LOCATION" -e "INPUT_SKIP_API_BUILD" -e "INPUT_PRODUCTION_BRANCH" -e "INPUT_DEPLOYMENT_ENVIRONMENT" -e "INPUT_IS_STATIC_EXPORT" -e "INPUT_DATA_API_LOCATION" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_RE
DeploymentId: 092e05a8-f8fb-[4](https://github.com/Workmayte/workmayte/actions/runs/12141072101/job/33852294191#step:6:4)ba5-9528-a6363780388[5](https://github.com/Workmayte/workmayte/actions/runs/12141072101/job/33852294191#step:6:5)
Try to validate location at: '/github/workspace/frontend'.
App Directory Location: 'frontend' was found.
Try to validate location at: '/github/workspace/swa-db-connections'.
Looking for event info
Skipping step to build /github/workspace/frontend with Oryx
Failed to find a default file in the app artifacts folder (frontend). Valid default files: index.html,Index.html.
If your application contains purely static content, please verify that the variable 'app_location' in your workflow file points to the root of your application.
If your application requires build steps, please validate that a default file exists in the build output directory.

For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
Exiting
```
Just in case, here's my repo [Workmayte](https://github.com/Workmayte/workmayte) you can see my structure

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.