From 4686ca4bb68311dbace565e82695affb67485d0a Mon Sep 17 00:00:00 2001 From: "david@DAVID-PC" Date: Tue, 22 Sep 2020 09:16:44 -0700 Subject: [PATCH 1/3] add sample workflows as running workflows --- .../workflows/export-and-branch-solution.yml | 51 +++++++++ .github/workflows/release-screening.yml | 81 ++++++++++++++ ALMLab_1_0_0_1.zip | Bin 8101 -> 0 bytes .../buildmanaged.yml | 102 +++++++++--------- export.yml => sample-workflows/export.yml | 102 +++++++++--------- solutions/ALMLab_1_0_0_1.zip | 3 + 6 files changed, 237 insertions(+), 102 deletions(-) create mode 100644 .github/workflows/export-and-branch-solution.yml create mode 100644 .github/workflows/release-screening.yml delete mode 100644 ALMLab_1_0_0_1.zip rename buildmanaged.yml => sample-workflows/buildmanaged.yml (96%) rename export.yml => sample-workflows/export.yml (96%) create mode 100644 solutions/ALMLab_1_0_0_1.zip diff --git a/.github/workflows/export-and-branch-solution.yml b/.github/workflows/export-and-branch-solution.yml new file mode 100644 index 0000000..7ba1fea --- /dev/null +++ b/.github/workflows/export-and-branch-solution.yml @@ -0,0 +1,51 @@ +name: export-and-branch-solution +# Export solution from DEV environment +# unpack it and prepare, commit and push a git branch with the changes + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + export-from-dev: + runs-on: windows-latest + env: + RUNNER_DEBUG: 1 + + steps: + - uses: actions/checkout@v2 + with: + lfs: true + + - name: who-am-i action + uses: microsoft/powerplatform-actions/who-am-i@v0.1.7 + with: + environment-url: 'https://user9-dev.crm.dynamics.com/' + user-name: 'user9@wrkdevops.onmicrosoft.com' + password-secret: ${{ secrets.password }} + + - name: export-solution action + uses: microsoft/powerplatform-actions/export-solution@v0.1.7 + with: + environment-url: 'https://user9-dev.crm.dynamics.com/' + user-name: 'user9@wrkdevops.onmicrosoft.com' + password-secret: ${{ secrets.password }} + solution-name: ALMLab + solution-output-file: out/exported/ALMLab.zip + + - name: unpack-solution action + uses: microsoft/powerplatform-actions/unpack-solution@v0.1.7 + with: + solution-file: out/exported/ALMLab.zip + solution-folder: out/solutions/ALMLab + solution-type: 'Unmanaged' + overwrite-files: true + + - name: branch-solution for Covid19Screening + uses: microsoft/powerplatform-actions/branch-solution@v0.1.7 + with: + solution-folder: out/solutions/ALMLab + solution-target-folder: solutions/ALMLab + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-screening.yml b/.github/workflows/release-screening.yml new file mode 100644 index 0000000..2c30922 --- /dev/null +++ b/.github/workflows/release-screening.yml @@ -0,0 +1,81 @@ +name: release-reening-solution +# prepare for releasing to prod: +# 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: + release: + types: [created] + +jobs: + convert-to-managed: + runs-on: windows-latest + env: + RUNNER_DEBUG: 1 + + steps: + - uses: actions/checkout@v2 + with: + lfs: true + + - name: Pack solution + uses: microsoft/powerplatform-actions/pack-solution@v0.1.7 + with: + solution-folder: solutions/ALMLab + solution-file: out/solutions/ALMLab.zip + solution-type: Unmanaged + + - name: Import solution as unmanaged to build env + uses: microsoft/powerplatform-actions/import-solution@v0.1.7 + with: + environment-url: 'https://user9-build.crm.dynamics.com/' + user-name: 'user9@wrkdevops.onmicrosoft.com' + password-secret: ${{ secrets.password }} + solution-file: out/solutions/ALMLab.zip + force-overwrite: true + publish-changes: true + + - name: Export solution as managed + uses: microsoft/powerplatform-actions/export-solution@v0.1.7 + with: + environment-url: 'https://user9-build.crm.dynamics.com/' + user-name: 'user9@wrkdevops.onmicrosoft.com' + password-secret: ${{ secrets.password }} + solution-name: Covid19Screening + managed: true + solution-output-file: out/ship/ALMLab.zip + + - name: Upload the ready to ship solution to GH artifact store + uses: actions/upload-artifact@v2 + with: + name: managedSolutions + path: out/ship/ALMLab.zip + + 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: out/release/ + + - run: get-childitem .\out\release\ + + - name: Import solution to prod env + uses: microsoft/powerplatform-actions/import-solution@v0.1.7 + with: + environment-url: 'https://user9-prod.crm.dynamics.com/' + user-name: 'user9@wrkdevops.onmicrosoft.com' + password-secret: ${{ secrets.password }} + solution-file: out/release/ALMLab.zip + force-overwrite: true + publish-changes: true diff --git a/ALMLab_1_0_0_1.zip b/ALMLab_1_0_0_1.zip deleted file mode 100644 index e0762c4b7a89dbe95a766b81d4138e4bc8beb3b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8101 zcmai(Wl$VUlYkd@SY&Ym1b2s^L4&(4?(Po3H7o?O3n92mkl?}HU4pv>ceenS_uswW z-PO(1^i0=OcU4!-^mNUmrig$@0DuRe0EdMP zZ{}&|;_Sih>*Pq4M+{)hAprbu?ZoKFW#t|0HK_9$M-l;L1+J`aEkR}=gmS37S|uYU zbFnWFjS*VorK2bcTZ;FwdAVcJaEXDnP%N*iq#(x25XM?UwQsgRx-}cp*}a^SJwHrX z(FPiPaJ!v%0pELjXYQ4CjPLpQ__&;23&{KP%@fFEzFze#Mg}V<%VBS`%2umdqr5&) z!s>j9_RQYE;sUkT?{ zXB1;qcxj-&KUvUQSXffof7wZEM32p z-c|(}#&-RDmMsS2OC69=w)~Z|^Ht1o+Gut;2h=7TLOgJhRd%-BTwVu=HN zw^ckRoe=dojHErg{U2Ak;)lcs(>H;HkJ=qVDrm!KV$In%8scdqPawfhu;12g`lE{j zArW2z9UGggcg-ecd=;hS%e^NX5~NG?W(wydO>|Qd8NHTVXHi(NjEF^M$va9lZ;x{_ zUfiJUg6R8Xd-@>C{`&-G;0xPPg2^vnxRQY#N}TGq-w1UBaQb^g=Ei|ogUse>E zjp#T@eF4Pp(oT6KQt-YjmonS(Do+KqwWf8NY1eFfB{PiNQO9s9Ph)LNQdYR7bi_i5 zpxhD+5s6!2_eXVaE5xEa-LmL?v7D~RZr5(L*Yrkvf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XcQgv~oi`(ge1fg$&=y`3e~@1v%6#84E|)eunoaPvhV|^XY6wBkrJdr|nqZ2Ky<#m$ z7Y%+fXCjCcQZf>M!d!DejQCU}%PaHjQ7{?qe)2i!7F0Vk*sY(HLmryjfpiX=YyVR| zT5YX^L_WDfJ#bjNu|khh7~ZdV<+Hx8+T8v6s`f8P6q-oyoBEgkbo?Foe<6{9l#8>c zm9wXbmY=JYhtdB>iRe^@u(~;cj(tnPTb&5hmclqW2&8(cW7Jzxx5$x8zG`@E8(;QT zt^$L#S{mg=n0B~)v09qpB-Wyy_CI3r_{`$!=Q~%*feFecNRfAaVcg51QS~%6@?H`x7$BKbMF+!;7RzFh3o1G8Ci~pft>pcFMQX7k3Z^tNO?0An_mVr1RrTmQO~*17rwI-= zEU|6QsxLf^W7o$@m1E>fsXfS==gRYLiirnMlNZ9p$uAiKM2!8=HvF$YPCVL-YXR&L zg?mv=n@nJ(ouIdkMWOZC)ni;1tPQO4YPi-p4R2XFqLKL8c-w0$b_^j5Q8Z>y(nM4L zb#cTY9X;8c8n1i3sN8>Ke_jn=fF9<1pmBlv!{cc)VWt+()=5BW_0mgZZdZG%X#>a> zql5RSNL5SU8T3-=7WcSdu5Zq%>?9kt%7~hu$i#Hle|QI`lBv0_gSc) zdF2X4%V7oi>&Glw9^5TkF~jb(B52S(A?ljqeLpp|ro8lB@KF(D=gs^nEHZrsK1t3B z0BODQ&t98XOs`Chj=SDGN7$=GcO>WK!K;IHmygOcltnlxg8h<8Zr4FON2fa-$rmna zig563fd7kX|0lWrpN#uI?f;$d{<}RLDd2xgfB)&=-?`+!JHQ|V{42AlDIy{Nvybq% MxBQ)F-u$Ee7f}!|+yDRo diff --git a/buildmanaged.yml b/sample-workflows/buildmanaged.yml similarity index 96% rename from buildmanaged.yml rename to sample-workflows/buildmanaged.yml index 3a1a1c9..8ae6def 100644 --- a/buildmanaged.yml +++ b/sample-workflows/buildmanaged.yml @@ -1,52 +1,52 @@ -# GitHub workflow to generate managed solution (build artifact) -name: convert-to-managed - -on: - pull_request: - branches: [ main ] - release: - types: [created] - -jobs: - build: - runs-on: windows-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: 'solutions/ALMLab-staged' - solution-file: out/CI/solutions/ALMLab.zip - solution-type: Unmanaged - - - name: Import solution as unmanaged to build env - uses: microsoft/powerplatform-actions/import-solution@v0 - with: - environment-url: '' - password-secret: ${{ secrets.password }} - solution-file: 'out/CI/solutions/ALMLab.zip' - force-overwrite: true - publish-changes: true - - - name: Export solution as managed - uses: microsoft/powerplatform-actions/export-solution@v0 - with: - environment-url: '' - user-name: '' - password-secret: ${{ secrets.password }} - solution-name: ALMLab - managed: true - solution-output-file: out/ship/ALMLab.zip - - - name: Upload the ready to ship solution to GH artifact store - uses: actions/upload-artifact@v2 - with: - name: managedSolutions +# GitHub workflow to generate managed solution (build artifact) +name: convert-to-managed + +on: + pull_request: + branches: [ main ] + release: + types: [created] + +jobs: + build: + runs-on: windows-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: 'solutions/ALMLab-staged' + solution-file: out/CI/solutions/ALMLab.zip + solution-type: Unmanaged + + - name: Import solution as unmanaged to build env + uses: microsoft/powerplatform-actions/import-solution@v0 + with: + environment-url: '' + password-secret: ${{ secrets.password }} + solution-file: 'out/CI/solutions/ALMLab.zip' + force-overwrite: true + publish-changes: true + + - name: Export solution as managed + uses: microsoft/powerplatform-actions/export-solution@v0 + with: + environment-url: '' + user-name: '' + password-secret: ${{ secrets.password }} + solution-name: ALMLab + managed: true + solution-output-file: out/ship/ALMLab.zip + + - name: Upload the ready to ship solution to GH artifact store + uses: actions/upload-artifact@v2 + with: + name: managedSolutions path: out/ship/ALMLab.zip \ No newline at end of file diff --git a/export.yml b/sample-workflows/export.yml similarity index 96% rename from export.yml rename to sample-workflows/export.yml index 4057b3d..e9284f4 100644 --- a/export.yml +++ b/sample-workflows/export.yml @@ -1,51 +1,51 @@ -# GitHub workflow to generate export a solution from an environment and unpack it to a new branch -name: export - on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - jobs: - build: - runs-on: windows-latest - env: - RUNNER_DEBUG: 1 - steps: - - uses: actions/checkout@v2 - with: - lfs: true - - name: who-am-i action - # uses: microsoft/powerplatform-actions/who-am-i@v0 - uses: ./microsoft/powerplatform-actions/who-am-i - with: - environment-url: '' - user-name: '' - password-secret: ${{ secrets.password }} - - name: export-solution action - # uses: microsoft/powerplatform-actions/export-solution@v0 - uses: ./microsoft/powerplatform-actions/export-solution - with: - environment-url: '' - user-name: '' - password-secret: ${{ secrets.password }} - solution-name: ALMLab - solution-output-file: 'ALMLab.zip' - working-directory: 'out/CI' - - name: unpack-solution action - # uses: microsoft/powerplatform-actions/unpack-solution@v0 - uses: ./microsoft/powerplatform-actions/unpack-solution - with: - solution-file: 'out/CI/ALMLab.zip' - solution-folder: 'out/CI/solutions/ALMLab' - solution-type: 'Unmanaged' - overwrite-files: true - - name: branch-solution for Covid19Screening - # uses: microsoft/powerplatform-actions/branch-solution@v0 - uses: ./microsoft/powerplatform-actions/branch-solution - with: - solution-folder: 'out/CI/solutions/Covid19Screening' - solution-target-folder: 'solutions/Covid19Screening' - repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: List Covid19Screening solution - run: | - cmd /c "dir /s /b out\CI\solutions\ALMLAB" +# GitHub workflow to generate export a solution from an environment and unpack it to a new branch +name: export + on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + jobs: + build: + runs-on: windows-latest + env: + RUNNER_DEBUG: 1 + steps: + - uses: actions/checkout@v2 + with: + lfs: true + - name: who-am-i action + # uses: microsoft/powerplatform-actions/who-am-i@v0 + uses: ./microsoft/powerplatform-actions/who-am-i + with: + environment-url: '' + user-name: '' + password-secret: ${{ secrets.password }} + - name: export-solution action + # uses: microsoft/powerplatform-actions/export-solution@v0 + uses: ./microsoft/powerplatform-actions/export-solution + with: + environment-url: '' + user-name: '' + password-secret: ${{ secrets.password }} + solution-name: ALMLab + solution-output-file: 'ALMLab.zip' + working-directory: 'out/CI' + - name: unpack-solution action + # uses: microsoft/powerplatform-actions/unpack-solution@v0 + uses: ./microsoft/powerplatform-actions/unpack-solution + with: + solution-file: 'out/CI/ALMLab.zip' + solution-folder: 'out/CI/solutions/ALMLab' + solution-type: 'Unmanaged' + overwrite-files: true + - name: branch-solution for Covid19Screening + # uses: microsoft/powerplatform-actions/branch-solution@v0 + uses: ./microsoft/powerplatform-actions/branch-solution + with: + solution-folder: 'out/CI/solutions/Covid19Screening' + solution-target-folder: 'solutions/Covid19Screening' + repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: List Covid19Screening solution + run: | + cmd /c "dir /s /b out\CI\solutions\ALMLAB" diff --git a/solutions/ALMLab_1_0_0_1.zip b/solutions/ALMLab_1_0_0_1.zip new file mode 100644 index 0000000..d8a0650 --- /dev/null +++ b/solutions/ALMLab_1_0_0_1.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42c1889fc8651361a96ad71d99e322e559ef25b9f60020b7cd3507073cd46423 +size 8101 From 7b8ee8011f57a8a9cb01262189812b170c43f439 Mon Sep 17 00:00:00 2001 From: "david@DAVID-PC" Date: Tue, 22 Sep 2020 09:21:04 -0700 Subject: [PATCH 2/3] fix naming --- .github/workflows/export-and-branch-solution.yml | 2 +- .../{release-screening.yml => release-solution-to-prod.yml} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename .github/workflows/{release-screening.yml => release-solution-to-prod.yml} (97%) diff --git a/.github/workflows/export-and-branch-solution.yml b/.github/workflows/export-and-branch-solution.yml index 7ba1fea..cf8ac9f 100644 --- a/.github/workflows/export-and-branch-solution.yml +++ b/.github/workflows/export-and-branch-solution.yml @@ -43,7 +43,7 @@ jobs: solution-type: 'Unmanaged' overwrite-files: true - - name: branch-solution for Covid19Screening + - name: branch-solution, prepare it for a PullRequest uses: microsoft/powerplatform-actions/branch-solution@v0.1.7 with: solution-folder: out/solutions/ALMLab diff --git a/.github/workflows/release-screening.yml b/.github/workflows/release-solution-to-prod.yml similarity index 97% rename from .github/workflows/release-screening.yml rename to .github/workflows/release-solution-to-prod.yml index 2c30922..548aa7b 100644 --- a/.github/workflows/release-screening.yml +++ b/.github/workflows/release-solution-to-prod.yml @@ -1,4 +1,4 @@ -name: release-reening-solution +name: release-solution-to-prod # prepare for releasing to prod: # 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 @@ -41,7 +41,7 @@ jobs: environment-url: 'https://user9-build.crm.dynamics.com/' user-name: 'user9@wrkdevops.onmicrosoft.com' password-secret: ${{ secrets.password }} - solution-name: Covid19Screening + solution-name: ALMLab managed: true solution-output-file: out/ship/ALMLab.zip From 319b616eaf9a7cf480a2c4b51c97cf343d335bd9 Mon Sep 17 00:00:00 2001 From: "david@DAVID-PC" Date: Tue, 22 Sep 2020 09:22:51 -0700 Subject: [PATCH 3/3] allow for empty commits --- .github/workflows/export-and-branch-solution.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/export-and-branch-solution.yml b/.github/workflows/export-and-branch-solution.yml index cf8ac9f..6736db9 100644 --- a/.github/workflows/export-and-branch-solution.yml +++ b/.github/workflows/export-and-branch-solution.yml @@ -49,3 +49,4 @@ jobs: solution-folder: out/solutions/ALMLab solution-target-folder: solutions/ALMLab repo-token: ${{ secrets.GITHUB_TOKEN }} + allow-empty-commit: true