其他分享
首页 > 其他分享> > Tutorial: Get started with GitHub Actions for Microsoft Power Platform

Tutorial: Get started with GitHub Actions for Microsoft Power Platform

作者:互联网

 

 

This three part tutorial will give you an opportunity to get hands on with best practices to automate building and deploying your app using GitHub Actions for Power Platform. The first two tutorials are all about setting up required environments and creating a solution to later use with GitHub Actions. If you are experienced with creating environments and solutions, you can follow the Tip below and skip to the third tutorial to begin using GitHub Actions for Power Platform.

 Tip

If you are already familiar with the concept of multiple Dataverse environments as well as how to use solutions to package your app, simply download and use the sample ALMLab solution and then skip to the last tutorialof this series.

Let's get started with tutorial #1 and create three Dataverse environments.

Create required environments

You will need to create, or have access to, three Dataverse environments in your demo or customer tenant. To create these environments, follow the instructions below. Otherwise, proceed to the end of this tutorial for the next steps.

  1. Sign in to the Power Platform admin center with credentials that provide access to a tenant with a minimum 3 GB available capacity (required to create the three environments).

  2. Select Environments in the navigation area.

  3. Select + New to create your first new environment.

    New environment

  4. The first environment should be named “Your Name – dev”, set the region to United States (default), set the environment type to Production (if available), if not use Trial.

    Create environment

  5. Select Yes to create a database and then Next.

  6. Set the currency to USD and language to English. Include the sample apps and data, provide a URL for your business organization, and then select Save.

    Set currency

  7. Your development environment has been created, follow steps 4 – 8 above to create a second environment called “Your Name – build” , and then create a third environment called “Your Name – prod”. Note that the third environment can be a trial environment type.

You now have the development, build, and production environments needed in the following modules of this tutorial.

 

Tutorial: Build a model-driven app for deployment using GitHub Actions for Microsoft Power Platform

 

In this tutorial, you will be creating a simple model-driven app to deploy using GitHub Actions for Microsoft Power Platform in the next tutorial.

In the next tutorial, you will learn how to:

Build a model-driven app

Follow the steps below to build a model-driven app.

  1. In your browser, navigate to https://make.powerapps.com and sign in with your credentials. Click the environment selector dropdown in the header and select your development environment.

    Select environment

  2. Click the Solutions area in the left navigation, and then click the New solution button to create a new solution.

    New solution

  3. In the side panel that appears, enter a name for the application and click the dropdown for the publisher, and then click the Add Publisher option.

     Note

    The solution publisher specifies who developed the app, so you should always create a solution publisher name that is meaningful. Furthermore, the solution publisher includes a prefix, which helps you distinguish system components or components introduced by others and is also a mechanism to help avoid naming collisions. This allows for solutions from different publishers to be installed in an environment with minimal conflicts.

    Create solution

  4. A new window will be displayed. If a window does not open, check your browser's popup blocker settings. For the purposes of this lab, enter 'ALMLab' for the display name, name, and prefix, and then choose Save and Close.

    Create publisher

  5. On the new solution panel, select the publisher that you just created, give the application a version number, and select Create to create a new unmanaged solution in the environment.

    New unmanaged solution

  6. In the solutions list, select the solution you just created and click the Edit button.

    Edit solution

  7. Your new solution will be empty, and you need to add components to it. In this tutorial we will create a custom entity. Click the New dropdown from the top navigation and then select Entity.

    New entity

  8. Enter a display name and plural name for the entity. The system will fill out the entity name and other fields for you. Click Create to create the entity.

    Create entity

  9. Once your entity is created, select the solution name again to go back to the solution view to add another component.

  10. Click the New dropdown, then App, and Model-driven app.

    New app

  11. Enter an application name, and then click the Done button.

    Enter app name

  12. In the application designer, click the Site Map to edit it.

    Open sitemap

  13. In the sitemap editor, select New Subarea to get its current properties.

    Edit sitemap

  14. Select the Entity dropdown and select your custom entity to add to the sitemap.

    Add entity

  15. Click Save, Publish, and then Save And Close to go back to the application designer.

    Save sitemap

  16. Click Save, and then Validate to validate the application.

    Save and validate

  17. You should see one warning. View the warning, select Publish, and then Play.

    View warning and play

  18. You should now see how the application you just built looks. You can use the application and close its tab when you are satisfied.

    View app

 

标签:GitHub,Power,Get,create,solution,environments,environment,app,your
来源: https://www.cnblogs.com/lingdanglfw/p/14332871.html