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