Skip to content

Commit

Permalink
Merge pull request #27 from exendahal/exendahal-patch-1
Browse files Browse the repository at this point in the history
Create dotnet.yml
  • Loading branch information
exendahal authored Aug 4, 2024
2 parents 1025747 + f7e59eb commit 534f647
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This GitHub Action builds a .NET MAUI project for all targeted platforms
# The workflow can be triggered manually, on a git push, or
# when a PR is opened that targets the develop branch.
# This verifies the project builds, no artifacts are being uploaded or can be retrieved.

name: Build .NET MAUI Project

on:
workflow_dispatch:
push:
branches: [ "develop" ]
paths-ignore:
- "**.md"
pull_request:
branches: [ "main" ]

# Customize with your values here
env:
BUILD_CONFIGURATION: Release
DOTNET_VERSION: 8.0.x
CSPROJ_TO_BUILD: MauiApp1.csproj

jobs:
build-ci:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install .NET MAUI Workload
run: dotnet workload install maui
- name: Restore dependencies
run: dotnet restore ${{ env.CSPROJ_TO_BUILD }}
- name: Build ${{ env.CSPROJ_TO_BUILD }}
run: dotnet build ${{ env.CSPROJ_TO_BUILD }} -c ${{ env.BUILD_CONFIGURATION }}

0 comments on commit 534f647

Please sign in to comment.