From cf53e87fe07335c8ae3035a1f0478dd06a3955c2 Mon Sep 17 00:00:00 2001 From: Andrii Rublov Date: Fri, 17 Jan 2025 17:23:52 +0100 Subject: [PATCH] Split `build` job into `build-and-test` and `publish` jobs --- .github/workflows/build.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dd74980..12fcb25 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,11 +1,11 @@ -name: Build and Test +name: Build, Test and Publish on: - push - pull_request jobs: - build: + bunld-and-test: runs-on: ubuntu-latest steps: - name: 📝 Fetch Sources @@ -18,10 +18,17 @@ jobs: run: dotnet restore - name: 🏗 Build for tests run: dotnet build --no-restore --configuration Debug - - name: 📝 Test ChromeProtocol.Runtime + - name: 📝 Test Microsoft.Artifacts.Authentication run: dotnet test --no-build --configuration Debug --verbosity normal src/Authentication.Tests - - name: 📝 Test ChromeProtocol.Tools + - name: 📝 Test CredentialProvider.Microsoft run: dotnet test --no-build --configuration Debug --verbosity normal CredentialProvider.Microsoft.Tests + + publish: + needs: build-and-test + runs-on: ubuntu-latest + steps: + - name: 📝 Fetch Sources + uses: actions/checkout@v3 - name: 🏗 Build & publish for release run: ./scripts/build.sh - name: 📦 Pack