From 8a432658ae763a7c917b706b00cd1c0b7e258359 Mon Sep 17 00:00:00 2001 From: Bardin08 Date: Wed, 13 Mar 2024 00:27:53 +0200 Subject: [PATCH 1/2] Update nuget-publish.yml --- .github/workflows/nuget-publish.yml | 2 +- .../X.Serilog.Sinks.Telegram.csproj | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nuget-publish.yml b/.github/workflows/nuget-publish.yml index f0221f1..74eb3d9 100644 --- a/.github/workflows/nuget-publish.yml +++ b/.github/workflows/nuget-publish.yml @@ -18,7 +18,7 @@ jobs: - name: Extract release version id: release_version - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF#refs/tags/} | cut -c 2-)" >> $GITHUB_ENV - name: Restore dependencies run: dotnet restore diff --git a/src/X.Serilog.Sinks.Telegram/X.Serilog.Sinks.Telegram.csproj b/src/X.Serilog.Sinks.Telegram/X.Serilog.Sinks.Telegram.csproj index bd7c97b..07fc315 100644 --- a/src/X.Serilog.Sinks.Telegram/X.Serilog.Sinks.Telegram.csproj +++ b/src/X.Serilog.Sinks.Telegram/X.Serilog.Sinks.Telegram.csproj @@ -3,15 +3,18 @@ net8.0 true + true + X.Serilog.Sinks.Telegram - Vladislav Bardin + Vladyslav Bardin 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 - Copyright (c) 2021 Vladislav Bardin + Copyright (c) 2024 Vladyslav Bardin https://github.com/Bardin08/X.Serilog.Sinks.Telegram https://github.com/Bardin08/X.Serilog.Sinks.Telegram serilog-sink, serilog, serilog-extensions 12 enable + 3.0.1 From fec0d94b181eb911912170c1973184e83e447cea Mon Sep 17 00:00:00 2001 From: Bardin08 Date: Wed, 13 Mar 2024 00:28:48 +0200 Subject: [PATCH 2/2] Specify project implicitly --- .github/workflows/nuget-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nuget-publish.yml b/.github/workflows/nuget-publish.yml index 74eb3d9..19c9608 100644 --- a/.github/workflows/nuget-publish.yml +++ b/.github/workflows/nuget-publish.yml @@ -30,7 +30,7 @@ jobs: run: dotnet test --no-restore --verbosity normal - name: Pack - run: dotnet pack --configuration Release --no-build --output nupkgs /p:PackageVersion=${{ env.RELEASE_VERSION }} + run: dotnet pack ./src/X.Serilog.Sinks.Telegram/X.Serilog.Sinks.Telegram.csproj --configuration Release --no-build --output nupkgs /p:PackageVersion=${{ env.RELEASE_VERSION }} - name: Push to NuGet run: dotnet nuget push "nupkgs/**/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json