Skip to content
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

Merged
merged 5 commits into from
Sep 19, 2024

Conversation

MrHinsh
Copy link
Member

@MrHinsh MrHinsh commented Sep 19, 2024

🔧 (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.

… 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.
@nkdagility-actions-bot nkdagility-actions-bot bot added build-action Edits to the build system feature labels Sep 19, 2024
@nkdagility-actions-bot
Copy link

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.
@nkdagility-actions-bot
Copy link

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.
@nkdagility-actions-bot
Copy link

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.
@nkdagility-actions-bot
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-river-093197403-2378.westeurope.5.azurestaticapps.net

@MrHinsh MrHinsh merged commit 822ef81 into main Sep 19, 2024
14 checks passed
@MrHinsh MrHinsh deleted the topic/publish-to-static-sites branch September 19, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-action Edits to the build system feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant