Azure / Azure/static-web-apps-cli

Get deployment url after successful deploy

Open
#565 1 comment 3 reactions 0 assignees View on GitHub
command: deploy complexity: hours priority: low (P2) scope: cli type: enhancement
Dominant language
TypeScript
Stars
668
Forks
156
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Since the Azure/static-web-apps-deploy action is a container action and thus doesn't work in windows workflows, I've implemented the deployment to azure using this cli. In this setting, it would be nice to get the url where the site is deployed from `swa deploy` to e.g show it as a comment or start api tests.

**Describe the solution you'd like**
`swa deploy` should return the deployment url (if deployment is successful). For additional convince, it would be nice if `swa deploy` would print the deployment url as a [job output](https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs) `::set-output deployment_url=` if the `ci` env variable is present.

**Describe alternatives you've considered**
Manual scraping of the output.

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.