Skip to content

Commit fd3481e

Browse files
authored
Merge pull request #33 from Bardin08/vbardin/setup-github-actions
Update NuGet Publish workflow
2 parents fa58740 + fec0d94 commit fd3481e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/nuget-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- name: Extract release version
2020
id: release_version
21-
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
21+
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF#refs/tags/} | cut -c 2-)" >> $GITHUB_ENV
2222

2323
- name: Restore dependencies
2424
run: dotnet restore
@@ -30,7 +30,7 @@ jobs:
3030
run: dotnet test --no-restore --verbosity normal
3131

3232
- name: Pack
33-
run: dotnet pack --configuration Release --no-build --output nupkgs /p:PackageVersion=${{ env.RELEASE_VERSION }}
33+
run: dotnet pack ./src/X.Serilog.Sinks.Telegram/X.Serilog.Sinks.Telegram.csproj --configuration Release --no-build --output nupkgs /p:PackageVersion=${{ env.RELEASE_VERSION }}
3434

3535
- name: Push to NuGet
3636
run: dotnet nuget push "nupkgs/**/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

src/X.Serilog.Sinks.Telegram/X.Serilog.Sinks.Telegram.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@
33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
6+
<IsPackable>true</IsPackable>
7+
68
<Title>X.Serilog.Sinks.Telegram</Title>
7-
<Authors>Vladislav Bardin</Authors>
9+
<Authors>Vladyslav Bardin</Authors>
810
<Description>This is a sink for Serilog logger that allows you to write logs or notifications just to your Telegram. This logger is fully compatible with Serilog's infrastructure and supports all its features. For more info and examples, visit sink's repository</Description>
9-
<Copyright>Copyright (c) 2021 Vladislav Bardin</Copyright>
11+
<Copyright>Copyright (c) 2024 Vladyslav Bardin</Copyright>
1012
<PackageProjectUrl>https://github.com/Bardin08/X.Serilog.Sinks.Telegram</PackageProjectUrl>
1113
<RepositoryUrl>https://github.com/Bardin08/X.Serilog.Sinks.Telegram</RepositoryUrl>
1214
<PackageTags>serilog-sink, serilog, serilog-extensions</PackageTags>
1315
<LangVersion>12</LangVersion>
1416
<Nullable>enable</Nullable>
17+
<Version>3.0.1</Version>
1518
</PropertyGroup>
1619

1720
<ItemGroup>

0 commit comments

Comments
 (0)