File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,28 @@ permissions:
77on :
88 pull_request :
99 branches : [ "main" ]
10+ push :
11+ branches :
12+ - main
1013env :
1114 pcfWorkkingDirectory : ' src/broadcast-pcf/appmodulepicker'
1215 broadcastjsWorkingDirectory : ' src/broadcast-typescript'
16+ solutionDirectory : ' src/broadcast-solution'
1317 artifactlocation : ' ${{ github.workspace }}/dist'
1418jobs :
19+ ValidationSolutionPack :
20+ if : ${{ github.event_name == 'pull_request' }}
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@v4
24+ - name : Install Power Platform Tools
25+ uses : microsoft/powerplatform-actions/actions-install@v1
26+ - name : Pack solution
27+ uses : microsoft/powerplatform-actions/pack-solution@v1
28+ with :
29+ solution-folder : ${{ env.solutionDirectory}}
30+ solution-file : artifactlocation/broadcast_solution.zip
31+ solution-type : Unmanaged
1532 buildBroadCastJs :
1633 runs-on : ubuntu-latest
1734 steps :
5875 - name : Copy file outputjs into staging directory
5976 run : cp ${{ env.broadcastjsWorkingDirectory }}/dist/broadcast.js ${{env.artifactlocation}}
6077 - name : Upload broadcastjs artifact
78+ if : ${{ success() && (github.event_name == 'push') }}
6179 uses : actions/upload-artifact@v4
6280 with :
6381 name : broadcastjs
7795 - name : Copy file output pcf bundle into staging directory
7896 run : cp ${{ env.pcfWorkkingDirectory }}/out/controls/AppModulePicker/* ${{env.artifactlocation}}
7997 - name : Upload AppModulePicker artifact
98+ if : ${{ success() && (github.event_name == 'push') }}
8099 uses : actions/upload-artifact@v4
81100 with :
82101 name : AppModulePicker
You can’t perform that action at this time.
0 commit comments