Skip to content

Commit

Permalink
Merge pull request #3 from TheEightBot/feature/net8-and-nuget-configs
Browse files Browse the repository at this point in the history
Update NuGet workflow and project files
  • Loading branch information
michaelstonis authored Dec 29, 2023
2 parents a954a16 + 8b2c85d commit 89104c6
Show file tree
Hide file tree
Showing 42 changed files with 683 additions and 748 deletions.
103 changes: 55 additions & 48 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,60 @@

name: .NET

on:
push:
tags:
- 'v**'
on:
push:
tags:
- "v**"

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x'
source-url: https://nuget.pkg.github.com/theeightbot/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Semver Parse
id: version
uses: release-kit/semver@v1.0.10

- name: Build Tycho.JsonSerializer
run: dotnet build Tycho.JsonSerializer/Tycho.JsonSerializer.csproj
- name: Create the package
run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} Tycho.JsonSerializer/Tycho.JsonSerializer.csproj
- name: Publish the package to GPR
run: dotnet nuget push Tycho.JsonSerializer/bin/Release/*.nupkg

- name: Build Tycho.JsonSerializer.NewtonsoftJson
run: dotnet build Tycho.JsonSerializer.NewtonsoftJson/Tycho.JsonSerializer.NewtonsoftJson.csproj
- name: Create the package
run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} Tycho.JsonSerializer.NewtonsoftJson/Tycho.JsonSerializer.NewtonsoftJson.csproj
- name: Publish the package to GPR
run: dotnet nuget push Tycho.JsonSerializer.NewtonsoftJson/bin/Release/*.nupkg

- name: Build Tycho.JsonSerializer.SystemTextJson
run: dotnet build Tycho.JsonSerializer.SystemTextJson/Tycho.JsonSerializer.SystemTextJson.csproj
- name: Create the package
run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} Tycho.JsonSerializer.SystemTextJson/Tycho.JsonSerializer.SystemTextJson.csproj
- name: Publish the package to GPR
run: dotnet nuget push Tycho.JsonSerializer.SystemTextJson/bin/Release/*.nupkg

- name: Build Tycho
run: dotnet build Tycho/Tycho.csproj
- name: Create the package
run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} Tycho/Tycho.csproj
- name: Publish the package to GPR
run: dotnet nuget push Tycho/bin/Release/*.nupkg
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.x"
source-url: https://nuget.pkg.github.com/theeightbot/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Semver Parse
id: version
uses: release-kit/semver@v1.0.10

- name: Build TychoDB.JsonSerializer
run: dotnet build TychoDB.JsonSerializer/TychoDB.JsonSerializer.csproj
- name: Create the package
run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} TychoDB.JsonSerializer/TychoDB.JsonSerializer.csproj
- name: Publish the package to GPR
run: dotnet nuget push TychoDB.JsonSerializer/bin/Release/*.nupkg
- name: Publish the package to NuGet
run: dotnet nuget push TychoDB.JsonSerializer/bin/Release/*.nupkg --api-key "${{ secrets.EIGHTBOT_NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json

- name: Build TychoDB.JsonSerializer.NewtonsoftJson
run: dotnet build TychoDB.JsonSerializer.NewtonsoftJson/TychoDB.JsonSerializer.NewtonsoftJson.csproj
- name: Create the package
run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} TychoDB.JsonSerializer.NewtonsoftJson/TychoDB.JsonSerializer.NewtonsoftJson.csproj
- name: Publish the package to GPR
run: dotnet nuget push TychoDB.JsonSerializer.NewtonsoftJson/bin/Release/*.nupkg
- name: Publish the package to NuGet
run: dotnet nuget push TychoDB.JsonSerializer.NewtonsoftJson/bin/Release/*.nupkg --api-key "${{ secrets.EIGHTBOT_NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json

- name: Build TychoDB.JsonSerializer.SystemTextJson
run: dotnet build TychoDB.JsonSerializer.SystemTextJson/TychoDB.JsonSerializer.SystemTextJson.csproj
- name: Create the package
run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} TychoDB.JsonSerializer.SystemTextJson/TychoDB.JsonSerializer.SystemTextJson.csproj
- name: Publish the package to GPR
run: dotnet nuget push TychoDB.JsonSerializer.SystemTextJson/bin/Release/*.nupkg
- name: Publish the package to NuGet
run: dotnet nuget push TychoDB.JsonSerializer.SystemTextJson/bin/Release/*.nupkg --api-key "${{ secrets.EIGHTBOT_NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json

- name: Build Tycho
run: dotnet build TychoDB/TychoDB.csproj
- name: Create the package
run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} Tycho/TychoDB.csproj
- name: Publish the package to GPR
run: dotnet nuget push TychoDB/bin/Release/*.nupkg
- name: Publish the package to NuGet
run: dotnet nuget push TychoDB/bin/Release/*.nupkg --api-key "${{ secrets.EIGHTBOT_NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json
55 changes: 40 additions & 15 deletions Directory.build.props
Original file line number Diff line number Diff line change
@@ -1,16 +1,41 @@
<Project>
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<LangVersion>latest</LangVersion>
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="stylecop.analyzers" Version="1.2.0-beta.435" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.3" PrivateAssets="all" />
<PackageReference Include="Roslynator.Analyzers" Version="4.3.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" Link="stylecop.json" />
</ItemGroup>
</Project>
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<LangVersion>latest</LangVersion>
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>
<PropertyGroup>
<Authors>Eight-Bot, Inc.</Authors>
<Copyright>2023 Eight-Bot</Copyright>
<PackageIcon>icon.png</PackageIcon>
<Owners>Eight-Bot, Inc.</Owners>
<PackageProjectUrl>https://eight.bot</PackageProjectUrl>
<RepositoryUrl>https://github.com/TheEightBot/TychoDB</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>nosql;database;json</PackageTags>
<Title>Tycho DB</Title>
<Summary>Lightweight and highly opioninated NoSQL database written on top of SQLite</Summary>
<Description>Lightweight and highly opioninated NoSQL database written on top of SQLite</Description>
<PackageIcon>logo.png</PackageIcon>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="stylecop.analyzers"
Version="1.2.0-beta.435"
PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers"
Version="8.0.0"
PrivateAssets="all" />
<PackageReference Include="Roslynator.Analyzers"
Version="4.7.0"
PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<None Include="..\images\logo.png"
Pack="true"
PackagePath="\" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json"
Link="stylecop.json" />
</ItemGroup>
</Project>
57 changes: 0 additions & 57 deletions Tycho.Benchmarks/TestModels.cs

This file was deleted.

40 changes: 0 additions & 40 deletions Tycho.Benchmarks/Tycho.Benchmarks.csproj

This file was deleted.

62 changes: 0 additions & 62 deletions Tycho.JsonSerializer.NewtonsoftJson/NewtonsoftJsonSerializer.cs

This file was deleted.

This file was deleted.

Loading

0 comments on commit 89104c6

Please sign in to comment.