From 7910768f16afda5055316a7fd5b237c92dcb028b Mon Sep 17 00:00:00 2001 From: amitav2000anand Date: Fri, 28 Mar 2025 20:54:42 -0400 Subject: [PATCH 1/2] Update release-solution-to-prod-with-inputs.yml --- sample-workflows/release-solution-to-prod-with-inputs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample-workflows/release-solution-to-prod-with-inputs.yml b/sample-workflows/release-solution-to-prod-with-inputs.yml index c65ed75..f56cb1e 100644 --- a/sample-workflows/release-solution-to-prod-with-inputs.yml +++ b/sample-workflows/release-solution-to-prod-with-inputs.yml @@ -119,6 +119,6 @@ jobs: app-id: ${{inputs.CLIENT_ID}} client-secret: ${{ secrets.envSecret }} tenant-id: ${{inputs.TENANT_ID}} - solution-file: ${{ inputs.solution_release_folder}}/${{ inputs.solution_name }}_managed.zip + solution-file: ${{ inputs.solution_name }}_managed.zip force-overwrite: true publish-changes: true From 0c505e0c99a224cb426e809ea655d52f807f1cb3 Mon Sep 17 00:00:00 2001 From: amitav2000anand Date: Fri, 28 Mar 2025 21:58:29 -0400 Subject: [PATCH 2/2] Delete sample-workflows/release-solution-to-prod-with-inputs.yml --- .../release-solution-to-prod-with-inputs.yml | 124 ------------------ 1 file changed, 124 deletions(-) delete mode 100644 sample-workflows/release-solution-to-prod-with-inputs.yml diff --git a/sample-workflows/release-solution-to-prod-with-inputs.yml b/sample-workflows/release-solution-to-prod-with-inputs.yml deleted file mode 100644 index f56cb1e..0000000 --- a/sample-workflows/release-solution-to-prod-with-inputs.yml +++ /dev/null @@ -1,124 +0,0 @@ -name: release-solution-to-prod-reusable -# Reusable workflow -# convert solution to managed (using a build PowerPlatform environment for the conversion) -# upload the solution to the GitHub artifacts and deploy to the PROD environment -on: - workflow_call: - inputs: - #Do Not change these values - #Values are set by the caller - #caller sample: release-action-call.ymnl - solution_name: - description: 'The solution name.' - type: string - default: ALMLab - solution_shipping_folder: - description: 'folder name for staging the exported solution *do not change*' - type: string - default: out/ship/ - solution_outbound_folder: - description: 'staging the unpacked solution folder before check-in *do not change*' - type: string - default: out/solutions/ - solution_source_folder: - description: 'folder name to be created and checked in *do not change*' - type: string - default: solutions/ - solution_release_folder: - description: 'folder where the released binaries are going to be hosted *do not change*' - type: string - default: out/release - BUILD_ENVIRONMENT_URL: - description: 'Build environment url.' - type: string - required: true - PRODUCTION_ENVIRONMENT_URL: - description: 'Production environment url.' - type: string - required: true - CLIENT_ID: - description: 'The client id' - type: string - required: true - TENANT_ID: - description: 'The tenant id' - type: string - required: true - secrets: - envSecret: - description: 'The secret value for authentication using SPN' - required: true - -jobs: - convert-to-managed: - runs-on: windows-latest - # or you can say runs-on: ubuntu-latest - env: - RUNNER_DEBUG: 1 - - steps: - - uses: actions/checkout@v2 - with: - lfs: true - - - name: Pack solution - uses: microsoft/powerplatform-actions/pack-solution@v0 - with: - solution-folder: ${{ inputs.solution_source_folder}}/${{ inputs.solution_name }} - solution-file: ${{ inputs.solution_outbound_folder}}/${{ inputs.solution_name }}.zip - solution-type: Unmanaged - - - name: Import solution as unmanaged to build env - uses: microsoft/powerplatform-actions/import-solution@v0 - with: - environment-url: ${{inputs.BUILD_ENVIRONMENT_URL}} - app-id: ${{inputs.CLIENT_ID}} - client-secret: ${{ secrets.envSecret }} - tenant-id: ${{inputs.TENANT_ID}} - solution-file: ${{ inputs.solution_outbound_folder}}/${{ inputs.solution_name }}.zip - force-overwrite: true - publish-changes: true - - - name: Export solution as managed - uses: microsoft/powerplatform-actions/export-solution@v0 - with: - environment-url: ${{inputs.BUILD_ENVIRONMENT_URL}} - app-id: ${{inputs.CLIENT_ID}} - client-secret: ${{ secrets.envSecret }} - tenant-id: ${{inputs.TENANT_ID}} - solution-name: ${{ inputs.solution_name }} - managed: true - solution-output-file: ${{ inputs.solution_shipping_folder}}/${{ inputs.solution_name }}_managed.zip - - - name: Upload the ready to ship solution to GH artifact store - uses: actions/upload-artifact@v2 - with: - name: managedSolutions - path: ${{ inputs.solution_shipping_folder}}/ - - release-to-staging: - needs: [ convert-to-managed ] - runs-on: windows-latest - env: - RUNNER_DEBUG: 1 - - steps: - - uses: actions/checkout@v2 - with: - lfs: true - - - name: Fetch the ready to ship solution from GH artifact store - uses: actions/download-artifact@v2 - with: - name: managedSolutions - path: ${{ inputs.solution_release_folder}} - - name: Import solution to prod env - uses: microsoft/powerplatform-actions/import-solution@v0 - with: - environment-url: ${{inputs.PRODUCTION_ENVIRONMENT_URL}} - app-id: ${{inputs.CLIENT_ID}} - client-secret: ${{ secrets.envSecret }} - tenant-id: ${{inputs.TENANT_ID}} - solution-file: ${{ inputs.solution_name }}_managed.zip - force-overwrite: true - publish-changes: true