Skip to content

Commit

Permalink
Other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hafeed3s committed Dec 30, 2023
1 parent 50836c3 commit 30d2161
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ jobs:

- name: Restore dependencies
run: dotnet restore

- name: Pack and publish
run: |
VERSION=$(echo ${GITHUB_REF#refs/tags/})
dotnet pack src/SUTForge/SUTForge.csproj --configuration Release --output . --version-suffix $VERSION
dotnet build --no-restore -c Release -p:Version=$VERSION
dotnet pack src/SUTForge/SUTForge.csproj --configuration Release --output . -p:Version=$VERSION
dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
10 changes: 10 additions & 0 deletions NuGet.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
<config>
<add key="defaultPushSource" value="https://api.nuget.org/v3/index.json" />
</config>
</configuration>
4 changes: 2 additions & 2 deletions src/SutForge/SutForge.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Sutb</RootNamespace>
<RootNamespace>SutForge</RootNamespace>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Title>SUT Forge</Title>
<Authors>dovic95</Authors>
<PackageTags>TDD unit-testing chicago classical SUT testing</PackageTags>
<Description>Simplifying .NET unit testing and Test-Driven Development with an intuitive builder pattern, classical approach, and high extensibility for effortless creation and customization of System Under Test instances.</Description>
<PackageProjectUrl>https://github.com/dovic95/SUTForge</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dovic95/SUTForge/blob/main/LICENSE</PackageLicenseUrl>
<PackageLicense>https://github.com/dovic95/SUTForge/blob/main/LICENSE</PackageLicense>
<RepositoryUrl>https://github.com/dovic95/SUTForge</RepositoryUrl>
<PackageTags>dotnet tdd tests chicago classical</PackageTags>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
Expand Down

0 comments on commit 30d2161

Please sign in to comment.