/pcf-actions-starter

Using GitHub Actions to automate Power Apps Component Framework builds and releases.

Primary LanguageTypeScriptMIT LicenseMIT

build

Summary

The repo demonstrates how you can use GitHub actions to build a PCF project, as well as how you can automate the releases.

Setup

After creating your folder with the PCF component, copy the .github folder on this repo into root on your PCF folder. On the build.yml, update this environment variable: msbuildtarget. This is so that MSBuild knows the target project to build, and the release artifacts will have the right names. The solution name is what is in the solution.xml file (uniquename). The formats used for the release are [solutionname]_v[package.json version]_managed.zip and [solutionname]_v[package.json version]_unmanaged.zip. As a convention I use Solution/[Solution Name] to hold the files for solution build.

Building

The build.yml workflow will build everytime a commit is pushed or an PR is merged into master.

Release

When you push a tag that is in the format vx.x.x, the release steps will run after the build steps. The release steps also copy the artifacts and put it in the release.