Skip to content

Commit a22fefe

Browse files
committed
SemVer 2.0
1 parent e1be29d commit a22fefe

7 files changed

Lines changed: 14 additions & 5 deletions

.github/workflows/deploy-nuget.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
1517
- name: Setup .NET
1618
uses: actions/setup-dotnet@v1
1719
with:
@@ -23,11 +25,13 @@ jobs:
2325
- name: Pack
2426
run: |
2527
BRANCH="${GITHUB_REF##*/}"
26-
COMMINT_SHORT_SHA=`git rev-parse --short ${GITHUB_SHA}`
28+
COMMIT_SHORT_SHA=`git rev-parse --short ${GITHUB_SHA}`
29+
COMMIT_COUNT=`git rev-list --count HEAD`
30+
COMMIT_TIME=`git show -s --format=%ct HEAD`
2731
if [ "$BRANCH" = "main" ]; then
2832
dotnet pack --no-dependencies -c Release
2933
else
30-
dotnet pack --no-dependencies -c Debug --version-suffix ${BRANCH}-${COMMINT_SHORT_SHA}
34+
dotnet pack --no-dependencies -c Debug --version-suffix ${BRANCH}.${COMMIT_TIME}+${COMMIT_SHORT_SHA}
3135
fi
3236
- name: Find Package
3337
run: |
File renamed without changes.
File renamed without changes.
File renamed without changes.

Netcorext.Logging.HttpClientLogger.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
1010
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
1111
<FileVersion>$(VersionMajor).$([System.DateTime]::UtcNow.ToString(yy)).$([System.DateTime]::UtcNow.ToString(MMdd)).$([System.DateTime]::UtcNow.ToString(HHmm))</FileVersion>
12+
<IsPackable>true</IsPackable>
1213
<IncludeSymbols>true</IncludeSymbols>
1314
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1415
<Nullable>enable</Nullable>
1516
<ImplicitUsings>enable</ImplicitUsings>
16-
<IsPackable>true</IsPackable>
1717
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);IncludeProjectReferences</TargetsForTfmSpecificBuildOutput>
1818
<Authors>Aren Chen</Authors>
1919
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2020
<PackageProjectUrl>https://github.com/arenchen/Netcorext.Logging.HttpClientLogger</PackageProjectUrl>
2121
<RepositoryUrl>https://github.com/arenchen/Netcorext.Logging.HttpClientLogger.git</RepositoryUrl>
2222
<Description>Log HttpClient Request Body</Description>
2323
</PropertyGroup>
24-
24+
2525
<Target Name="IncludeProjectReferences" DependsOnTargets="ResolveReferences">
2626
<ItemGroup>
2727
<IncludeBuildOutput />

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Netcorext.Logging.HttpClientLogger
2+
3+
[![Nuget](https://img.shields.io/nuget/v/Netcorext.Logging.HttpClientLogger)](https://www.nuget.org/packages/Netcorext.Logging.HttpClientLogger)
4+
5+
Log HttpClient Request Body

0 commit comments

Comments
 (0)