Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/export-and-branch-solution.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: export-and-branch-solution
name: Export-and-branch-solution
# Export solution from DEV environment
# unpack it and prepare, commit and push a git branch with the changes

Expand All @@ -20,34 +20,34 @@ jobs:
with:
lfs: true

- name: who-am-i action
- name: Who-am-i action
uses: microsoft/powerplatform-actions/who-am-i@v0
with:
environment-url: 'https://user9-dev.crm.dynamics.com/'
user-name: 'user9@wrkdevops.onmicrosoft.com'
environment-url: 'https://org8afc7726.crm.dynamics.com/'
user-name: 'admin@M365x639218.onmicrosoft.com'
password-secret: ${{ secrets.password }}

- name: export-solution action
- name: Export-solution action
uses: microsoft/powerplatform-actions/export-solution@v0
with:
environment-url: 'https://user9-dev.crm.dynamics.com/'
user-name: 'user9@wrkdevops.onmicrosoft.com'
environment-url: 'https://org8afc7726.crm.dynamics.com/'
user-name: 'admin@M365x639218.onmicrosoft.com'
password-secret: ${{ secrets.password }}
solution-name: ALMLab
solution-output-file: out/exported/ALMLab.zip
solution-name: Ghosh
solution-output-file: out/exported/Ghosh.zip

- name: unpack-solution action
- name: Un-pack-solution action
uses: microsoft/powerplatform-actions/unpack-solution@v0
with:
solution-file: out/exported/ALMLab.zip
solution-folder: out/solutions/ALMLab
solution-file: out/exported/Ghosh.zip
solution-folder: out/solutions/Ghosh
solution-type: 'Unmanaged'
overwrite-files: true

- name: branch-solution, prepare it for a PullRequest
- name: Branch-solution, prepare it for a PullRequest
uses: microsoft/powerplatform-actions/branch-solution@v0
with:
solution-folder: out/solutions/ALMLab
solution-target-folder: solutions/ALMLab
solution-folder: out/solutions/Ghosh
solution-target-folder: solutions/Ghosh
repo-token: ${{ secrets.GITHUB_TOKEN }}
allow-empty-commit: true
30 changes: 15 additions & 15 deletions .github/workflows/release-solution-to-prod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release-solution-to-prod
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
Expand All @@ -18,39 +18,39 @@ jobs:
- uses: actions/checkout@v2
with:
lfs: true

- name: Pack solution
uses: microsoft/powerplatform-actions/pack-solution@v0
with:
solution-folder: solutions/ALMLab
solution-file: out/solutions/ALMLab.zip
solution-folder: solutions/Ghosh
solution-file: out/solutions/Ghosh.zip
solution-type: Unmanaged

- name: Import solution as unmanaged to build env
uses: microsoft/powerplatform-actions/import-solution@v0
with:
environment-url: 'https://user9-build.crm.dynamics.com/'
user-name: 'user9@wrkdevops.onmicrosoft.com'
environment-url: 'https://org8afc7726.crm.dynamics.com/'
user-name: 'admin@M365x639218.onmicrosoft.com'
password-secret: ${{ secrets.password }}
solution-file: out/solutions/ALMLab.zip
solution-file: out/solutions/Ghosh.zip
force-overwrite: true
publish-changes: true

- name: Export solution as managed
uses: microsoft/powerplatform-actions/export-solution@v0
with:
environment-url: 'https://user9-build.crm.dynamics.com/'
user-name: 'user9@wrkdevops.onmicrosoft.com'
environment-url: 'https://org8afc7726.crm.dynamics.com/'
user-name: 'admin@M365x639218.onmicrosoft.com'
password-secret: ${{ secrets.password }}
solution-name: ALMLab
solution-name: Ghosh
managed: true
solution-output-file: out/ship/ALMLab.zip
solution-output-file: out/ship/Ghosh.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
path: out/ship/Ghosh.zip

release-to-staging:
needs: [ convert-to-managed ]
Expand All @@ -72,9 +72,9 @@ jobs:
- name: Import solution to prod env
uses: microsoft/powerplatform-actions/import-solution@v0
with:
environment-url: 'https://user9-prod.crm.dynamics.com/'
user-name: 'user9@wrkdevops.onmicrosoft.com'
environment-url: 'https://orgd161aeeb.crm4.dynamics.com/'
user-name: 'admin@M365x639218.onmicrosoft.com'
password-secret: ${{ secrets.password }}
solution-file: out/release/ALMLab.zip
solution-file: out/release/Ghosh.zip
force-overwrite: true
publish-changes: true
4 changes: 2 additions & 2 deletions sample-workflows/export-and-branch-solution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ on:

env:
#edit your values here
ENVIRONMENT_URL: <ENVIRONMENTURL>
USERNAME: <USERNAME>
ENVIRONMENT_URL: https://org8afc7726.crm.dynamics.com/
USERNAME: admin@M365x639218.onmicrosoft.com


jobs:
Expand Down
Loading