Skip to content

Commit

Permalink
Update Build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DevoTalk committed Dec 26, 2024
1 parent cb1e0ce commit d7b6924
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,22 @@ jobs:
with:
dotnet-version: '8.0.x' # .NET version

- name: Install dependencies
- name: Install MAUI workloads
run: |
dotnet restore # Restore project dependencies
dotnet workload install maui
dotnet workload install maui-android maui-ios maui-maccatalyst maui-windows
- name: Restore dependencies
run: dotnet restore

- name: Build project
run: |
dotnet build --configuration Release --target ${{ matrix.platform }} --no-restore # Build project for target platform
dotnet build --configuration Release --framework ${{ matrix.platform }} --no-restore
- name: Publish for ${{ matrix.platform }}
run: |
dotnet publish --configuration Release --output ./publish --target ${{ matrix.platform }} --no-restore # Publish the app for the selected platform
dotnet publish --configuration Release --framework ${{ matrix.platform }} --output ./publish --no-restore
- name: Archive artifacts
if: success() # Archive the build artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit d7b6924

Please sign in to comment.