From 5bac796bc99e2e1c61b4962354249db341b0a21f Mon Sep 17 00:00:00 2001 From: Martijn van Dijk Date: Fri, 2 Sep 2022 15:00:55 +0200 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 6c9ee8d6..3aa0743c 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -9,10 +9,15 @@ on: jobs: build: + env: + BUILD_CONFIG: 'Release' + SOLUTION: 'ExoPlayer.sln' + runs-on: windows-latest steps: - uses: actions/checkout@v3 + - name: Setup .NET uses: actions/setup-dotnet@v2 with: @@ -22,7 +27,10 @@ jobs: run: dotnet workload install maui - name: Restore dependencies - run: dotnet restore + run: dotnet restore $SOLUTION - name: Build - run: dotnet build --no-restore + run: dotnet build $SOLUTION --configuration $BUILD_CONFIG --no-restore + + - name: Package nuget + run: dotnet pack $SOLUTION --configuration release -o:package