Skip to content

Commit 2fb969b

Browse files
Handle versioning
1 parent 1a6e27d commit 2fb969b

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/dotnet-core.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
if-no-files-found: error
5252

5353
- name: Setup .NET Core for GPR
54+
if: success() && github.event_name == 'push' && matrix.dotnet == '3.1.x'
5455
uses: actions/setup-dotnet@v1
5556
with:
5657
dotnet-version: ${{matrix.dotnet}}
@@ -60,3 +61,9 @@ jobs:
6061
- name: Publish the package to GPR
6162
if: success() && github.event_name == 'push' && matrix.dotnet == '3.1.x'
6263
run: dotnet nuget push System.Text.Json.Extensions/bin/Release/
64+
- name: Bump versions
65+
if: success() && github.event_name == 'push' && matrix.dotnet == '3.1.x'
66+
uses: SiqiLu/dotnet-bump-version@1.0.1
67+
with:
68+
version_files: "**/*.csproj"
69+
github_token: ${{ secrets.GITHUB_TOKEN }}

System.Text.Json.Extensions/System.Text.Json.Extensions.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.1</TargetFramework>
55
<PackageId>System.Text.Json.Extensions</PackageId>
6+
<Version>1.0.1</Version>
67
<PublishRepositoryUrl>true</PublishRepositoryUrl>
78
<IncludeSymbols>true</IncludeSymbols>
89
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

0 commit comments

Comments
 (0)