BETA

Skip links

  • Skip to primary navigation
  • Skip to content
  • Skip to footer
Queensland government logo Queensland government logo
Sign in Sign out
Sign in
  • Profile summary
  • Sign out
Department of Education Department of Education Developer Portal
  • Home
  • Tags
  • Chat
  • New
    APIs
  • Help
  • Contact us
  • Dark mode
  • Home
  • Tags
  • Chat
  • New
    APIs
  • Help
  • Contact us
  • My profile
  • Dark mode

How to deploy to a new SWA from a GitHub repository?

Matt Warwick Government Certified Admin
by Matt Warwick
3 August 2023
Last updated 22 March 2024
Technology
Technology

Create new SWA from GitHub repository

Create a new Azure Static Web App as described here.

Configure callback url on App Registration

  • Navigate to the Azure portal
  • Select “Azure AD B2C”
  • On the left hand menu under “Manage”, select “App Registrations”
  • Select the App Registration configured for the previous SWA
  • On the left hand menu under “Manage”, select “Authentication”
  • Change the “Redirect URIs” url to refer to the url of the new SWA’s url.

Ensure the configuration from the existing GitHub action is moved across to the new GitHub action

It took some time to craft our initial Action to suit all our needs so ensure this information is not lost. Creating the new SWA and linking it to the new repository will ensure a new Action yaml file will get created under the .github/workflows folder. Move the content from the original file across to the new one.

SWA: Upgrade tier, then configure identity

In order to configure authentication the SWA has to be upgraded from a Free tier to a Standard tier.

  • Navigate to the Azure portal
  • Select the new SWA
  • On the left hand menu under “Settings”, select “Hosting Plan”
  • Select “Standard” tier and click “Save”

Once this has been done refer to this post and follow the instructions under “Add an Access policy for the SWA”

Ensure App configuration values are copied across.

– Ensure all Application Settings are copied across from one SWA to the other.

Ensure swa-cli.config.json has the correct SWA name in it.

Ensure the value in the file “swa-cli.config.json” under the node “configurations” matches the name of the repository.

Powered by Link to AI chat
  • Copyright
  • Disclaimer
  • Privacy
  • Right to information
  • Accessibility
  • Jobs in Queensland Government
  • Other languages

© The State of Queensland (Department of Education) 2025

Queensland Government