Skip to content

Commit

Permalink
Update add-new-template
Browse files Browse the repository at this point in the history
  • Loading branch information
tshanep authored Jan 22, 2024
1 parent afe1f38 commit 8d156b7
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/add-new-template
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ jobs:
env:
# Define the XML namespace used in your XML file
namespace: http://schemas.microsoft.com/developer/msbuild/2003


# Add SolutionsToBuild node to main solutions.proj
- name: Add SolutionsToBuild node to main solutions.proj
run: |
# Define the path to the XML file
Expand Down Expand Up @@ -142,9 +143,19 @@ jobs:
# Define the XML namespace used in your XML file
namespace: http://schemas.microsoft.com/developer/msbuild/2003

# Sync & Build Solution
# Sync and Build Solution
- name: Sync Solution
run: |
cd .\Solutions\${{ github.event.inputs.solution_name }}\
pac solution sync --processCanvasApps
dotnet build /p:configuration=Release ${{ github.event.inputs.solution_name }}.cdsproj
run: |
cd .\Solutions\${{ github.event.inputs.solution_name }}\
pac solution sync --processCanvasApps
dotnet build /p:configuration=Release ${{ github.event.inputs.solution_name }}.cdsproj
shell: pwsh

# If solution_type is APP, then sync and build the base solution also
- name: Run step for solution_type APP
if: ${{ github.event.inputs.solution_type == 'APP' }}
run: |
cd .\Solutions\${{ github.event.inputs.solution_name }}\
pac solution sync --processCanvasApps
dotnet build /p:configuration=Release ${{ github.event.inputs.solution_name }}.cdsproj
shell: pwsh

0 comments on commit 8d156b7

Please sign in to comment.