From 49baeae78090a6cb0d802aec7cf32083313360a3 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Wed, 15 Jan 2025 12:18:38 +0000 Subject: [PATCH] add gitversion to linux build to version nuget correctly. rename builds (#495) * add gitversion to linux build to version nuget correctly. rename builds * fix naming --- .github/workflows/main.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index af72f5344..27130a2c3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,7 +6,7 @@ on: tags: ["v3.*"] # Manual delivery on every 3.x tag jobs: - build: + build-windows: runs-on: windows-latest outputs: version: ${{ steps.set-version.outputs.version }} @@ -27,10 +27,10 @@ jobs: path: ~/.nuget/packages key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} - - name: ⚒️ Run GitVersion + - name: ⚒️ Run GitVersion on Windows run: ./build.ps1 build-server-version - - name: ⚒️ Run build + - name: ⚒️ Run build on Windows run: ./build.ps1 - name: ⬆️ Upload artifacts @@ -70,7 +70,7 @@ jobs: with: name: output-* - test: + build-linux: runs-on: ubuntu-latest steps: - name: Checkout @@ -87,12 +87,15 @@ jobs: path: ~/.nuget/packages key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} - - name: ⚒️ Run Build and Pack on Linux - run: ./build.sh build-linux + - name: ⚒️ Run GitVersion on Linux + run: ./build.sh build-server-version - - name: ⚒️ Run tests + - name: ⚒️ Run tests on Linux run: ./build.sh test-only + - name: ⚒️ Run Build and Pack on Linux + run: ./build.sh build-linux + - name: Upload coverage reports to Codecov with GitHub Action uses: codecov/codecov-action@v5 with: