Unsolvable Deployment Failure: "No matching Static Web App was found"
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
My deployment is failing with the error Reason: No matching Static Web App was found or the api key was invalid.
I have spent hours debugging this and have taken the most extreme troubleshooting steps possible. This feels like a platform bug.
My new, clean repository: https://github.com/ClayNova/findlybusiness
The latest failed DeploymentId: a704fab5-52a6-4f83-9b43-e04aa9f4a58a
We have already tried all of the following:
Starting from a completely new, empty repository.
Using a simple, single index.html file.
Completely deleting and recreating the Static Web App resource multiple times.
Resetting the deployment token multiple times and updating the GitHub secret.
Verifying the GitHub secret name and value are correct.
Using a clean, standard token-based workflow file with skip_app_build: true.
Resolving all Git issues.
Even after replacing every single component (repo, code, Azure app, token, workflow), the deployment still fails with the same initial authentication error. Please investigate the backend logs for my DeploymentId to see why the content server is rejecting the request.
My workflow file is:
YAML
name: Azure Static Web Apps CI/CD
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
with:
submodules: true
- 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_LEMON_SAND_0881F8A03 }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"
app_location: "/"
api_location: ""
output_location: ""
skip_app_build: true
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.