Skip to content

No matching Static Web App was found or the api key was invalid. #1706

@lakshmivsppay

Description

@lakshmivsppay

Describe the bug

A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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
permissions:
id-token: write
contents: read

steps:
  - uses: actions/checkout@v3

  # Install node
  - name: Setup Node.js
    uses: actions/setup-node@v4
    with:
      node-version: 22.12

  # Install dependencies
  - name: Install Dependencies
    working-directory: ./ChargeUp
    run: npm install --legacy-peer-deps

  # Build Angular
  - name: Build Angular App
    working-directory: ./ChargeUp
    run: npm run build

  # Deploy (skip Oryx build)
  - name: Deploy to Azure Static Web Apps
    id: builddeploy
    uses: Azure/static-web-apps-deploy@v1
    with:
      azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LEMON_GRASS_011A4C90F }}
      action: "upload"
      app_location: "./ChargeUp"
      output_location: "ChargeUp/dist/ChargeUp/browser"
      skip_app_build: true

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Device info (if applicable):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
Image
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions