This simple multi-stage YAML pipeline packs a PowerApps model-driven app (Dynamics 365 CRM/CE) solution from source control (Assumes an unmanaged solution has been unpacked using SolutionPackager and stored in source) and runs it through an intermediate build environment to create a managed solution artifact. The output artifact is then run through a deployment job with an Azure Pipeline Environment specified that allows us to track deployments to the specified target environment.
Reference the PowerApp Build Tools Lab for directions on setting the pipeline up using the classic editor. The YAML in this gist follows the same steps as the classic editor setup used in the labs but adds more variables to the mix.
Check out the [D365 CE Pipelines re