Skip to content

Commit

Permalink
Merge pull request #33 from Bardin08/vbardin/setup-github-actions
Browse files Browse the repository at this point in the history
Update NuGet Publish workflow
  • Loading branch information
Bardin08 authored Mar 12, 2024
2 parents fa58740 + fec0d94 commit fd3481e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
7 changes: 5 additions & 2 deletions src/X.Serilog.Sinks.Telegram/X.Serilog.Sinks.Telegram.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IsPackable>true</IsPackable>

<Title>X.Serilog.Sinks.Telegram</Title>
<Authors>Vladislav Bardin</Authors>
<Authors>Vladyslav Bardin</Authors>
<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>
<Copyright>Copyright (c) 2021 Vladislav Bardin</Copyright>
<Copyright>Copyright (c) 2024 Vladyslav Bardin</Copyright>
<PackageProjectUrl>https://github.com/Bardin08/X.Serilog.Sinks.Telegram</PackageProjectUrl>
<RepositoryUrl>https://github.com/Bardin08/X.Serilog.Sinks.Telegram</RepositoryUrl>
<PackageTags>serilog-sink, serilog, serilog-extensions</PackageTags>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<Version>3.0.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit fd3481e

Please sign in to comment.