C#C
C#12mo ago
Jimenemex

Azure SWA Github Action failure

I have a static web app that I want to just serve an index.html, but my github action is failing with:

2025-01-01T07:49:26.9203515Z : The content server has rejected the request with: BadRequest
2025-01-01T07:49:26.9204633Z: Reason: No matching Static Web App was found or the api key was invalid.

However I've set my github repository secret AZURE_STATIC_WEB_APPS_API_TOKEN to the deployment token in my static web app. What else could be the problem?

My workflow file was taken from here - https://github.com/actions/starter-workflows/blob/main/deployments/azure-staticwebapp.yml

With:
app_location: "/" # My index.html is just in the root of the repo
api_location: ""
app_artifact_location: ""
GitHub
Accelerating new GitHub Actions workflows . Contribute to actions/starter-workflows development by creating an account on GitHub.
Was this page helpful?