Skip to content

Commit

Permalink
Fixes versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrichards committed Mar 29, 2021
1 parent 43ad8d9 commit 208ff2e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,18 @@ jobs:
versionSpec: '5.x'
- name: Determine Version
uses: gittools/actions/gitversion/[email protected]
- name: Display Version
run: |
echo "SemVer: $GITVERSION_SEMVER"
echo "SemVer: $GITVERSION_NUGETVERSION"
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.201
- 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
Expand Down

0 comments on commit 208ff2e

Please sign in to comment.