From 4a4f354c838b2a0f25033677049881eef25a260b Mon Sep 17 00:00:00 2001 From: Robert Wagner Date: Tue, 19 Mar 2024 13:23:43 +1000 Subject: [PATCH 1/2] Build on Ubuntu --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 80acd6c..89657be 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ on: jobs: build: - runs-on: windows-latest # Use Ubuntu in v5.0 + runs-on: ubuntu-latest env: DOTNET_NOLOGO: true From 7b204b2d23ad44b2ff4de2a7db9c77044008103c Mon Sep 17 00:00:00 2001 From: Robert Wagner Date: Tue, 19 Mar 2024 13:34:38 +1000 Subject: [PATCH 2/2] Used bash variables --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 89657be..7d66207 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,7 +35,7 @@ jobs: - name: Display SemVer run: | - echo "SemVer: $env:GitVersion_SemVer" + echo "SemVer: $GitVersion_SemVer" - name: Add DbUp NuGet Source run: dotnet nuget add source --name DbUp --username DbUp --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text https://nuget.pkg.github.com/DbUp/index.json @@ -45,7 +45,7 @@ jobs: working-directory: src - name: Build - run: dotnet build -c Release --no-restore /p:Version=$env:GitVersion_SemVer + run: dotnet build -c Release --no-restore /p:Version=$GitVersion_SemVer working-directory: src - name: Test @@ -53,7 +53,7 @@ jobs: working-directory: src - name: Pack - run: dotnet pack --no-build -c Release -o ../artifacts /p:Version=$env:GitVersion_SemVer + run: dotnet pack --no-build -c Release -o ../artifacts /p:Version=$GitVersion_SemVer working-directory: src - name: Push NuGet packages to GitHub Packages ⬆️