Skip to main content

3. Create a GitHub Repo

LAB SCENARIO

Working as part of the PrioritZ fusion team you will be configuring GitHub Actions using the Power Platform Build Tools to automate the team’s deployments.

In Exercise 3 you will create a GitHub repository and add repository secrets.

Important

You will need GitHub account in this lab

3.1 Create Repository​

  1. Navigate to GitHub
  2. Sign in or signup for GitHub.
  3. πŸ‘‰ New repository. Enter PrioritZ for Repository name, select Public, check the Add a README file, and click Create repository.
  1. πŸ‘‰ Settings. Go to the Security section, expand Secrets and select Actions.
Important

The values you provide will not be visible after you create the item so take your time to get the values correct.

Lab-05 Image Lab-05 Image

3.2 Create Repo Secret​

  1. πŸ‘‰ New repository secret. πŸ‘‰ PowerPlatformAppID for Name and paste the Application (client) ID from your notepad in the Value field and click Add secret.
  2. πŸ‘‰ New repository secret again. πŸ‘‰ PowerPlatformClientSecret for Name and paste the secret Value from your notepad in the Value field and click Add secret.
  3. πŸ‘‰ New repository secret again. πŸ‘‰ PowerPlatformTenantID for Name and paste the secret Tenant ID from your notepad in the Value field and click Add secret.
  4. πŸ‘‰ New repository secret again. πŸ‘‰ PowerPlatformDevUrl for Name and paste the secret Dev environment URL from your notepad in the Value field and click Add secret.
  5. πŸ‘‰ New repository secret one more time. πŸ‘‰ PowerPlatformTestUrl for Name and paste the secret Test environment URL from your notepad in the Value field and click Add secret.
Note

You should now have 5 repository secrets.

Lab-05 Image

3.3 Manage Permission​

  1. On the left navigation in the Code and Automation section expand Actions and select General.

  2. Scroll down to the Workflow Permissions section. πŸ‘‰ Read and write permissions. πŸ‘‰ Save

Lab-05 Image

Note

Do not navigate away from this page.