From 79d971247bd6da0f31e1bd0ef0c414836ad113a7 Mon Sep 17 00:00:00 2001 From: Easley wang Date: Wed, 31 Jul 2024 19:10:02 +0800 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 15c848b..1ab5880 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,6 +1,12 @@ name: .NET -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: + branches: + - main jobs: build: @@ -9,12 +15,14 @@ jobs: matrix: os: [windows-2022, ubuntu-22.04, macos-12] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup .NET 8 uses: actions/setup-dotnet@v3 with: dotnet-version: 8.0.x - name: Install dependencies run: dotnet restore + working-directory: src/AvaloniaSample - name: Build - run: dotnet build AvaloniaSample --configuration Release --no-restore + run: dotnet build --configuration Release --no-restore + working-directory: src/AvaloniaSample