Amazon.co.uk Widgets

Log in

X

Building a model-driven Power App to deploy using GitHub Actions for Power Platform

This is part 2 of Publish Power Apps securely via GitHub. You'll need to have completed Publish Power Apps securely via GitHub (part 1) before continuing.

What follows is the second part of a step by step implementation of strategy for publishing Power Apps via GitHub a simple Power App, This requires the creation of a simple Power App to deploy via GitHub.

Building a model-driven Power App 

Create Power App

  • Sign in to Power Platform admin centre
  • Select your developer environment from the dropdown in the nav bar.
  • Click "New Solution" from the Solutions menu.
  • In the panel, enter the Display name and Name for your app, and then click 'Add publisher'
Creating a Power Apps solution
Creating a Power Apps solution

Add a publisher

Publishers identify the developer of a solution. The prefix is a way to avoid naming collisions among Power apps from different publishers installed in the same environment. Seems brittle given all the best practices from other realms which could point to ways to avoid this requirement.

  • Enter the display name, name, description and prefix, and then choose Save and Close.
  • Click "Save"
Create a publisher for your Power Apps solution
Create a publisher for your Power Apps solution

Add a table to your solution

The solution will be empty, and the purpose of it is to be stored in GitHub and deployed via GitHub Actions into a production environment, so it needs some purpose.

  • Select the solution and then click "+ New" and select "Table"
  • Add a simple table with a display name and "Save"
Add a table to the Power apps solution
Add a table to the Power apps solution

Add model-driven app to your solution

  • Add another component, click "+ New" then "App" then "Model-driven app" 
  • Enter the Name and description and click "Create"
  • In the app designer click "Add page" and choose "Dataverse table" and then click "Next". Check "Show in navigation" and then find your table and select it and then click "Add". 
  • Click Save, then Publish, and once complete, click "Play", you may have to sign-in again
Add page to a model-driven Power app
Add page to a model-driven Power app

Add model-driven app to your solution

  • Marvel at your new Power App! It doesn't do much but it will serve the purpose.
Worlds simplest model-driven aPower App
Worlds simplest model-driven Power App

Now that you completed the second part of this step by step implementation of a strategy for publishing Power Apps via GitHub by creating a simple Power App to deploy via GitHub, You can go on to the next part Publishing Power Apps to clients production environments securely using GitHub with Power Platform (part 3) to create a GitHub Action to deploy your solution.


References

See also: