Skip to content

Commit 38797fb

Browse files
committed
Prepare for NuGet pbulishing: updated csproj and CI pipeline
1 parent dc20c39 commit 38797fb

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,17 @@ jobs:
77
- uses: actions/setup-dotnet@v3
88
with:
99
dotnet-version: 8.x
10-
- run: dotnet build
10+
- run: dotnet build --configuration Release
1111
- run: dotnet test
12+
- run: dotnet pack --configuration Release
13+
14+
publish:
15+
needs: build-and-test
16+
runs-on: ubuntu-latest
17+
if: startsWith(github.ref, 'refs/tags/v')
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-dotnet@v3
21+
with:
22+
dotnet-version: 8.x
23+
- run: dotnet nuget push Stegosaurus/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

Stegosaurus/Stegosaurus.csproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@
77
<Nullable>enable</Nullable>
88
</PropertyGroup>
99

10+
<PropertyGroup>
11+
<Version>1.0.0</Version>
12+
<Authors>Michael Pearce</Authors>
13+
<Description>Stegosaurus is a lightweight steganography tool using LSB encoding and AES encryption.</Description>
14+
<PackageTags>steganography, security, cryptography, encoding, LSB</PackageTags>
15+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
16+
<RepositoryUrl>https://github.com/FirstFlush/Stegosaurus</RepositoryUrl>
17+
<PackageProjectUrl>https://github.com/FirstFlush/Stegosaurus</PackageProjectUrl>
18+
<RepositoryType>git</RepositoryType>
19+
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
20+
<IncludeSymbols>true</IncludeSymbols>
21+
<IncludeSource>true</IncludeSource>
22+
</PropertyGroup>
23+
1024
<ItemGroup>
1125
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.2" />
1226
<PackageReference Include="Serilog" Version="4.2.0" />

0 commit comments

Comments
 (0)