vscode-azurestaticwebapps icon indicating copy to clipboard operation
vscode-azurestaticwebapps copied to clipboard

Publish a SWA from VS Code

Open anthonychu opened this issue 3 years ago • 2 comments

Needs discussion

  1. Select a SWA (exclude ones that are connected to GitHub):
    • Create a SWA without connecting to GitHub
    • Or select from list of SWAs not connected to GitHub
  2. Select a storage account and blob container (must be private) - Currently, the deployment API takes a URL to a zip file so a Storage account is needed. Need to figure out the most seamless experience here to ensure one exists and to select it.
  3. Select frontend app output/artifacts location
  4. Select backend app location (do we build the app for them? what if it's an app like C# that builds into a subdirectory?)

Then the extension will zip up the 2 folders in the right format and upload it to the container. Generate a SAS URI for the file and call the zipdeploy API with the SAS URI.

When successful, do we delete the file from storage?

/cc @miwebst @annaji-msft

anthonychu avatar Nov 20 '20 22:11 anthonychu

Linking these issues for tracking:

https://github.com/Azure/static-web-apps/issues/298 https://github.com/Azure/static-web-apps/issues/7

alexweininger avatar Aug 03 '21 18:08 alexweininger

[updating here as well!]

Hi all, We have now officially announced the GA of Static Web Apps CLI🎉🎉 This is a power-packed tool which now enables features such as login, deploy from local, automatic framework detection and much more - all from your local development system! Do have a look and let us know how you like it :) (P.S. It is Open Source, so feel free to contribute to the next set of features you'd like to see!) 🌟

Reshmi-Sriram avatar May 20 '22 08:05 Reshmi-Sriram