From 208ff2e02cee07412494c370d77b9279bde06fa1 Mon Sep 17 00:00:00 2001 From: Chris Richards Date: Mon, 29 Mar 2021 22:04:01 +0100 Subject: [PATCH] Fixes versioning --- .github/workflows/build.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 83d42d0..9508270 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,10 +23,6 @@ jobs: versionSpec: '5.x' - name: Determine Version uses: gittools/actions/gitversion/execute@v0.9.7 - - name: Display Version - run: | - echo "SemVer: $GITVERSION_SEMVER" - echo "SemVer: $GITVERSION_NUGETVERSION" - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: @@ -34,11 +30,11 @@ jobs: - name: Restore run: dotnet restore - name: Build - run: dotnet build -c Release --no-restore + run: dotnet build -c Release --no-restore -p:Version=$GITVERSION_NUGETVERSION - name: Test - run: dotnet test -c Release + run: dotnet test -c Release --no-restore - name: Pack - run: dotnet pack -v normal -c Release --no-restore --include-symbols --include-source -p:Version=$GITVERSION_NUGETVERSION" -o ./artifacts + run: dotnet pack -v normal -c Release --no-restore --include-symbols --include-source -p:Version=$GITVERSION_NUGETVERSION -o ./artifacts - name: Push to MyGet run: dotnet nuget push ./artifacts/*.nupkg --source https://www.myget.org/F/aisparser/api/v3/index.json --api-key ${{ secrets.MYGET_API_KEY }} - name: Artifacts