Skip to content

Commit c44f63b

Browse files
committed
fix: update serilog version and ms identity version.
Implement Release Please for easy releases. Remove EOF .net versions.
1 parent 18ce303 commit c44f63b

File tree

6 files changed

+53
-7
lines changed

6 files changed

+53
-7
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "1.1.3"
3+
}

.github/release-please-config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/refs/heads/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"release-type": "simple"
6+
}
7+
}
8+
}

.github/workflows/Publish.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ jobs:
1313
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
16+
17+
- name: Docker meta
18+
id: meta
19+
uses: docker/metadata-action@v5
20+
with:
21+
flavor: |
22+
latest=false
23+
tags: |
24+
type=semver,pattern={{version}}
25+
1626
- name: Setup dotnet
1727
uses: actions/setup-dotnet@v4
1828
with:
@@ -22,7 +32,7 @@ jobs:
2232
- name: Build
2333
run: dotnet build --configuration Release --no-restore
2434
- name: Pack
25-
run: dotnet pack --configuration Release --no-build --output output /property:Version="${{ github.ref_name }}"
35+
run: dotnet pack --configuration Release --no-build --output output /property:Version="${{ steps.meta.outputs.version }}"
2636
- name: Push
2737
run: dotnet nuget push output/*.nupkg --source https://api.nuget.org/v3/index.json --api-key $NUGET_AUTH_TOKEN --skip-duplicate
2838
env:

.github/workflows/release.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/create-github-app-token@v2
17+
id: app-token
18+
with:
19+
app-id: ${{ vars.RELEASE_BOT_APP_ID }}
20+
private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}
21+
- uses: googleapis/release-please-action@v4
22+
with:
23+
token: ${{ steps.app-token.outputs.token }}
24+
config-file: ".github/release-please-config.json"
25+
manifest-file: ".github/.release-please-manifest.json"

src/Serilog.Enrichers.AzureClaims/Serilog.Enrichers.AzureClaims.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
</PropertyGroup>
@@ -25,8 +25,8 @@
2525
</PropertyGroup>
2626

2727
<ItemGroup>
28-
<PackageReference Include="Microsoft.Identity.Web" Version="3.5.0" />
29-
<PackageReference Include="Serilog" Version="4.2.0" />
28+
<PackageReference Include="Microsoft.Identity.Web" Version="3.9.4" />
29+
<PackageReference Include="Serilog" Version="4.3.0" />
3030
</ItemGroup>
3131

3232
<ItemGroup>

src/Serilog.Enrichers.Claims/Serilog.Enrichers.Claims.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
</PropertyGroup>
@@ -25,8 +25,8 @@
2525
</PropertyGroup>
2626

2727
<ItemGroup>
28-
<PackageReference Include="Microsoft.Identity.Web" Version="3.5.0" />
29-
<PackageReference Include="Serilog" Version="4.2.0" />
28+
<PackageReference Include="Microsoft.Identity.Web" Version="3.9.4" />
29+
<PackageReference Include="Serilog" Version="4.3.0" />
3030
</ItemGroup>
3131

3232
<ItemGroup>

0 commit comments

Comments
 (0)