Azure / Azure/static-web-apps-cli

swa deploy fails without error

Open
#557 10 comments 1 reaction 1 assignee Assigned to @sgollapudi77 View on GitHub
command: deploy
Dominant language
TypeScript
Stars
668
Forks
156
PR merge metrics
No merged PRs in 30d

Description

The swa deploy just fails with no error.
I can briefly see the StaticSitesClient process in `ps aux` for like 0.5s.

```
15:22 $ swa deploy --no-use-keychain --verbose=silly -R theproject-dev --app-name theproject-dev --subscription-id abc123

Welcome to Azure Static Web Apps CLI (1.0.2)

Getting config file options from swa-cli.config.json...
Config file does not exist at /home/perosb/build/theproject/swa-cli.config.json
Deploying front-end files from folder:
/home/perosb/build/theproject

Deployment token found in Environment Variables:
- SWA_CLI_DEPLOYMENT_TOKEN:

Deploying to environment: preview

Trying to read workflow config with values:
- appLocation: /home/perosb/build/theproject
- outputLocation: /home/perosb/build/theproject
- apiLocation:
No workflow config folder found at /home/perosb/build/theproject/.github/workflows
Validating user workflow config (BEFORE):
- appLocation: /home/perosb/build/theproject
- outputLocation: /home/perosb/build/theproject
- apiLocation:
Validating user workflow config (AFTER):
- appLocation: /home/perosb/build/theproject
- apiLocation:
- outputLocation: /home/perosb/build/theproject
No staticwebapp.config.json found in current project
Deploying project to Azure Static Web Apps...
Fetching release metadata for version: stable. Please wait...
- version: stable
- buildId: 1.0.020391
- publishDate: 2022-08-01T17:11:02.6122551Z
- files:
- linux-x64:
- url: https://swalocaldeploy.azureedge.net/downloads/1.0.020391/linux/StaticSitesClient
- sha: 2f2accf69fbc9eb87c9ef35900f61771cfa7d449d177babe6534cc0f952ad993
- win-x64:
- url: https://swalocaldeploy.azureedge.net/downloads/1.0.020391/windows/StaticSitesClient.exe
- sha: 100cc717758ea6ef4af52957128fb0e6b0edd67b0d98b504eabbe7b708f0376e
- osx-x64:
- url: https://swalocaldeploy.azureedge.net/downloads/1.0.020391/macOS/StaticSitesClient
- sha: 34e91e8631e042839f50db6a78d87de62f57401d2a3f4ab616b6bb51264b9411
Local client binary is up to date. Skipping download.
Deploying using /home/perosb/.swa/deploy/1.0.020391/StaticSitesClient@1.0.020391
Deploying using the following options:
- env:
- SWA_CLI_DEBUG: silly
- SWA_RUNTIME_WORKFLOW_LOCATION:
- SWA_RUNTIME_CONFIG_LOCATION:
- SWA_RUNTIME_CONFIG:
- SWA_CLI_VERSION: 1.0.2
- SWA_CLI_DEPLOY_DRY_RUN: false
- SWA_CLI_DEPLOY_BINARY: /home/perosb/.swa/deploy/1.0.020391/StaticSitesClient@1.0.020391
- DEPLOYMENT_ACTION: upload
- DEPLOYMENT_PROVIDER: swa-cli-1.0.2
- REPOSITORY_BASE: /home/perosb/build/theproject
- SKIP_APP_BUILD: true
- SKIP_API_BUILD: true
- DEPLOYMENT_TOKEN:
- APP_LOCATION: /home/perosb/build/theproject
- API_LOCATION:
- CONFIG_FILE_LOCATION:
- VERBOSE: true
- DEPLOYMENT_ENVIRONMENT: preview
ℹ DeploymentId: 9396e4a3-79de-48cf-995f-3adc6399f517

ℹ Verbose logging enabled
ℹ Build timeout not specified, defaulting to 15 minutes
ℹ App Directory Location: '/home/perosb/build/theproject' was found.
ℹ Looking for event info
ℹ Event info parsed from action options.
ℹ Could not get repository branch. Proceeding
ℹ Could not get repository url. Proceeding
```

**Desktop (please complete the following information):**

- OS:
Fedora 36

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.