← Files Microsoft DataverseARCHIVED FILE

templates/deploy.yml

1.05 KB · Nov 10, 2026 · 06:18 UTC

↓ Download file

See the change to this file →

name: Deploy to Power Platform

on:
  push:
    branches:
      - main
    paths:
      - 'solutions/**'

jobs:
  deploy:
    runs-on: ubuntu-latest
    environment: production

    steps:
      - uses: actions/checkout@v4

      - name: Pack solution
        uses: microsoft/powerplatform-actions/pack-solution@v1
        with:
          solution-folder: solutions/${{ secrets.POWERPLATFORM_SOLUTION_NAME }}
          solution-file: solutions/${{ secrets.POWERPLATFORM_SOLUTION_NAME }}.zip
          solution-type: Unmanaged

      - name: Import solution
        uses: microsoft/powerplatform-actions/import-solution@v1
        with:
          environment-url: ${{ secrets.POWERPLATFORM_ENVIRONMENT_URL }}
          app-id: ${{ secrets.POWERPLATFORM_CLIENT_ID }}
          client-secret: ${{ secrets.POWERPLATFORM_CLIENT_SECRET }}
          tenant-id: ${{ secrets.POWERPLATFORM_TENANT_ID }}
          solution-file: solutions/${{ secrets.POWERPLATFORM_SOLUTION_NAME }}.zip
          force-overwrite: true
          publish-changes: true
          skip-dependency-check: false

SHA-256: 40893882b55c8f43a3afd753f609d78daf0e3a03ef6634a7c7374cf25c3cab01