diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 80acd6c..7d66207 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 @@ -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 ⬆️