-
-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to also publish to Azure Static Sites #2378
Conversation
… for deployment Introduce the AzureSitesEnvironment variable to manage different deployment environments (e.g., preview, canary). This change allows for more flexible and environment-specific deployments. Additionally, add steps to create a GitHub App token and use it for deploying static web apps to Azure, enhancing security and automation in the deployment process.
Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-river-093197403-2378.westeurope.5.azurestaticapps.net |
Add a new step to build the site with Jekyll into a different directory (`./_site2/`) and upload it as a separate artifact. This allows for parallel builds or testing different configurations without interfering with the primary build. The commented-out Jekyll build action is retained for potential future use.
…ew artifact Add a step to download the AzureDevOpsMigrationTools-Site2 artifact and update the deployment path to use the new artifact. This ensures the correct version of the site is deployed, improving the deployment process and maintaining consistency with the latest build artifacts.
Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-river-093197403-2378.westeurope.5.azurestaticapps.net |
Adding the `--baseurl "/"` parameter ensures that the site is built with the correct base URL, which is essential for proper linking and resource loading in the production environment. This change helps avoid issues related to incorrect paths when the site is deployed.
Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-river-093197403-2378.westeurope.5.azurestaticapps.net |
The baseurl parameter is set to an empty string to ensure that the site builds correctly without appending any base URL. This change is necessary to avoid potential issues with URL paths when deploying the site.
Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-river-093197403-2378.westeurope.5.azurestaticapps.net |
🔧 (main.yml): add AzureSitesEnvironment variable and GitHub App token for deployment
Introduce the AzureSitesEnvironment variable to manage different deployment environments (e.g., preview, canary). This change allows for more flexible and environment-specific deployments. Additionally, add steps to create a GitHub App token and use it for deploying static web apps to Azure, enhancing security and automation in the deployment process.