Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ jobs:
dotnet publish src/cyclonedx/cyclonedx.csproj -r $runtime --configuration Release /p:Version=$VERSION --self-contained true /p:PublishSingleFile=true /p:IncludeNativeLibrariesInSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --output bin/$runtime
done

dotnet pack src/cyclonedx/cyclonedx.csproj --configuration Release /p:Version=$VERSION /p:PackageOutputPath=bin/nuget
dotnet nuget push bin/nuget/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

docker login --username coderpatros --password "$DOCKER_TOKEN"
docker buildx build \
--sbom=true \
Expand Down
1 change: 1 addition & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/CycloneDX/cyclonedx-cli.git</RepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<PackageVersion>$(VersionSuffix)</PackageVersion>
<!-- <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> -->
<!-- <RestoreLockedMode>true</RestoreLockedMode> -->
</PropertyGroup>
Expand Down
7 changes: 7 additions & 0 deletions nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>

1 change: 1 addition & 0 deletions src/cyclonedx/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[cyclonedx-cli project README.md](https://github.com/CycloneDX/cyclonedx-cli/blob/master/README.md)
9 changes: 9 additions & 0 deletions src/cyclonedx/cyclonedx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<!-- <PublishTrimmed>true</PublishTrimmed>-->
<PackAsTool>true</PackAsTool>
<ToolCommandName>dotnet-CycloneDX-cli</ToolCommandName>
<PackageId>CycloneDX.CLI</PackageId>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageDescription>A command line tool for interacting with CycloneDX bill-of-material documents.</PackageDescription>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<RuntimeIdentifiers>linux-x64;linux-musl-x64;linux-arm;linux-arm64;win-x64;win-x86;win-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>
</PropertyGroup>
Expand All @@ -22,5 +27,9 @@
<PackageReference Include="System.Security.Cryptography.Xml" Version="6.0.1" />
</ItemGroup>

<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="" Condition="Exists('README.md')" />
</ItemGroup>

</Project>