Skip to content

Commit

Permalink
Updating versioning.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaabreu committed Sep 30, 2020
1 parent 3d51cac commit 0bfe984
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9
- run: |
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}"
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.NuGetVersionV2 }}"
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
- name: Install dependencies
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Test with dotnet
run: dotnet test --no-restore
- name: Pack with dotnet
run: dotnet pack -c Release -p:Version=${{ steps.gitversion.outputs.nuGetVersionV2 }}-alpha.${{ steps.gitversion.outputs.CommitsSinceVersionSource }} --no-restore -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --output nuget-packages
run: dotnet pack -c Release -p:Version=${{ steps.gitversion.outputs.NuGetVersionV2 }} --no-restore -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --output nuget-packages
# - name: Push with dotnet
# run: dotnet nuget push nuget-packages/*.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json
- name: Archive packages
Expand All @@ -48,7 +48,7 @@ jobs:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: v${{ steps.gitversion.outputs.nuGetVersionV2 }}-alpha.${{ steps.gitversion.outputs.CommitsSinceVersionSource }}
title: v${{ steps.gitversion.outputs.NuGetVersionV2 }}
files: |
LICENSE
nuget-packages/*.nupkg
Expand Down
13 changes: 1 addition & 12 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
assembly-versioning-scheme: MajorMinorPatch
mode: Mainline
branches:
master:
regex: ^master$
tag: ''
increment: Patch
prevent-increment-of-merged-branch-version: true
track-merge-target: false
tracks-release-branches: false
is-mainline: true

mode: ContinuousDeployment
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ With .NET CLI:
dotnet add package SimpleConcepts.Extensions.Caching
```

## Samples

Check the included project in Sample.Web to see a general purpose implementation.

## Use cases

#### Json object serialization
Expand Down

0 comments on commit 0bfe984

Please sign in to comment.