From ba36916a9708741d3e86cd836ea5eeedd7c174d1 Mon Sep 17 00:00:00 2001 From: dotnetprog <24593889+dotnetprog@users.noreply.github.com> Date: Thu, 4 Sep 2025 21:05:58 -0400 Subject: [PATCH 1/2] prepare pipeline for versionning and deployments --- .github/workflows/ci-validation.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci-validation.yml b/.github/workflows/ci-validation.yml index ae4b9f4..547e7ea 100644 --- a/.github/workflows/ci-validation.yml +++ b/.github/workflows/ci-validation.yml @@ -7,11 +7,28 @@ permissions: on: pull_request: branches: [ "main" ] + push: + branches: + - main env: pcfWorkkingDirectory: 'src/broadcast-pcf/appmodulepicker' broadcastjsWorkingDirectory: 'src/broadcast-typescript' + solutionDirectory: 'src/broadcast-solution' artifactlocation: '${{ github.workspace }}/dist' jobs: + ValidationSolutionPack: + if: ${{ github.event_name == 'pull_request' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Power Platform Tools + uses: microsoft/powerplatform-actions/actions-install@v1 + - name: Pack solution + uses: microsoft/powerplatform-actions/pack-solution@v0 + with: + solution-folder: ${{ env.solutionDirectory}} + solution-file: artifactlocation/broadcast_solution.zip + solution-type: Unmanaged buildBroadCastJs: runs-on: ubuntu-latest steps: @@ -58,6 +75,7 @@ jobs: - name: Copy file outputjs into staging directory run: cp ${{ env.broadcastjsWorkingDirectory }}/dist/broadcast.js ${{env.artifactlocation}} - name: Upload broadcastjs artifact + if: ${{ success() && (github.event_name == 'push') }} uses: actions/upload-artifact@v4 with: name: broadcastjs @@ -77,6 +95,7 @@ jobs: - name: Copy file output pcf bundle into staging directory run: cp ${{ env.pcfWorkkingDirectory }}/out/controls/AppModulePicker/* ${{env.artifactlocation}} - name: Upload AppModulePicker artifact + if: ${{ success() && (github.event_name == 'push') }} uses: actions/upload-artifact@v4 with: name: AppModulePicker From 0f25b0cc285226c5b5279df2a13a38db8790e137 Mon Sep 17 00:00:00 2001 From: dotnetprog <24593889+dotnetprog@users.noreply.github.com> Date: Thu, 4 Sep 2025 21:06:46 -0400 Subject: [PATCH 2/2] fix ver --- .github/workflows/ci-validation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-validation.yml b/.github/workflows/ci-validation.yml index 547e7ea..90bd541 100644 --- a/.github/workflows/ci-validation.yml +++ b/.github/workflows/ci-validation.yml @@ -24,7 +24,7 @@ jobs: - name: Install Power Platform Tools uses: microsoft/powerplatform-actions/actions-install@v1 - name: Pack solution - uses: microsoft/powerplatform-actions/pack-solution@v0 + uses: microsoft/powerplatform-actions/pack-solution@v1 with: solution-folder: ${{ env.solutionDirectory}} solution-file: artifactlocation/broadcast_solution.zip