This is a sample repository to show how to use GitHub Actions with the Power Platform in GCC. Full documentation on the Power Platform GitHub Actions can be found below,
https://github.com/microsoft/powerplatform-actions
Sample Power Platform GitHub Action examples can be found below,
https://github.com/microsoft/powerplatform-actions-lab/tree/main/sample-workflows
- You will need an O365 tenant with a Power Apps license
- Create three Power Platform environments. Save each environment URL for the GitHub setup. You can get the environment URL from the Power Platform Admin Center
- Development Environment
- Build Environment
- Production Environment
- Create an Azure Active Directory (AAD) Application and create a secret credential to authenticate with
- Save the client id, tenant id and app secret for the GitHub setup
- In Power Platform Admin Center, add the AAD Application as an Application User and assign it a role for each environment you previously created
https://docs.microsoft.com/en-us/power-platform/admin/manage-application-users
- Clone this repository
- Create the following Action Secrets in your repository
AAD_CLIENT_ID
AAD_TENANT_ID
AAD_APP_SECRET
DEV_ENVIRONMENT_URL
BUILD_ENVIRONMENT_URL
PROD_ENVIRONMENT_URL
- Create a new solution file in the Development environment you created.
- Update the
export-hello-world-solution
action to match the actualSOLUTION_NAME
- Run the GitHub Action to export the solution file into your GitHub repo
- Submit a Pull Request to merge the branched unpacked solution file into your main branch
- Update the
release-hello-world
action to match the actualSOLUTION_NAME
you want to publish - Create a new release in your repository
- Watch the action complete
- Go into your Power Platform Production environment and verify the solution was deployed