Azure / Azure/static-web-apps-cli

Get deployment url after successful deploy

Offen
#565 1 Kommentar 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
command: deploy complexity: hours priority: low (P2) scope: cli type: enhancement
Vorherrschende Sprache
TypeScript
Sterne
668
Forks
156
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne beim Befehl `swa deploy` und verfolge den Pfad für erfolgreiche Deployments sowie die Formatierung seiner Ausgabe. Bestätige, wie die Deployment-URL zurückgegeben werden kann und, wenn `ci` vorhanden ist, als Job-Output verfügbar gemacht werden kann; abgeschlossen ist die Aufgabe, wenn beide Verhaltensweisen nach einem erfolgreichen Deployment funktionieren.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
azure, github-actions
Bereich
ci-cd, cli, cloud
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
50/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.