Skip to content

Commit

Permalink
Re supabase-community/supabase-csharp#74 - changes assembly name to `…
Browse files Browse the repository at this point in the history
…Supabase.Core`
  • Loading branch information
acupofjose committed Jun 10, 2023
1 parent e6eede9 commit 0896b05
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 55 deletions.
Binary file added .github/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.301
dotnet-version: '7.0.x'

- name: Install dependencies
run: dotnet restore
Expand Down
33 changes: 9 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.301
dotnet-version: '7.0.x'

- name: Wait for tests to succeed
uses: lewagon/[email protected]
Expand All @@ -23,28 +23,13 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10

# Publish
- name: publish on version change
id: publish_nuget
uses: rohith/publish-nuget@v2
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: Core/Core.csproj

# NuGet package id, used for version detection & defaults to project name
PACKAGE_NAME: supabase/core

# Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH
# VERSION_FILE_PATH: Directory.Build.props
- name: Install dependencies
run: dotnet restore

# Regex pattern to extract version info in a capturing group
VERSION_REGEX: ^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$
- name: Build Core
run: dotnet build ./Core/Core.csproj --configuration Release --no-restore

# API key to authenticate with NuGet server
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

# NuGet server uri hosting the packages, defaults to https://api.nuget.org
NUGET_SOURCE: https://api.nuget.org

# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
INCLUDE_SYMBOLS: true
# Publish
- name: publish on version change
run: nuget push "**/*.nupkg" -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Changelog

## 0.0.3 - 2023-06-10

- Changes assembly name to `Supabase.Core`
14 changes: 14 additions & 0 deletions Core.sln
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,20 @@ MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2E3D2A48-13BB-4FDE-A351-0F5A18E483F9}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
CHANGELOG.md = CHANGELOG.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core", "Core\Core.csproj", "{CB06BAE1-2939-48B9-A6E0-76B7CB9B28EC}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{A499F1A7-D091-49B0-BA37-DE4B8B96D4AB}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{E74F4FEF-A266-4BDF-ABE3-9971D1D9D134}"
ProjectSection(SolutionItems) = preProject
.github\workflows\build-documentation.yaml = .github\workflows\build-documentation.yaml
.github\workflows\dotnet-core.yml = .github\workflows\dotnet-core.yml
.github\workflows\release.yml = .github\workflows\release.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -27,4 +37,8 @@ Global
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {60A9E6A9-9F1E-4BDB-ACAF-379C9B524314}
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{A499F1A7-D091-49B0-BA37-DE4B8B96D4AB} = {2E3D2A48-13BB-4FDE-A351-0F5A18E483F9}
{E74F4FEF-A266-4BDF-ABE3-9971D1D9D134} = {A499F1A7-D091-49B0-BA37-DE4B8B96D4AB}
EndGlobalSection
EndGlobal
73 changes: 43 additions & 30 deletions Core/Core.csproj
Original file line number Diff line number Diff line change
@@ -1,32 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackOnBuild>true</PackOnBuild>
<PackageId>supabase-core</PackageId>
<Authors>Joseph Schultz &lt;[email protected]&gt;</Authors>
<Copyright>MIT</Copyright>
<NeutralLanguage>en</NeutralLanguage>
<Owners>Joseph Schultz &lt;[email protected]&gt;</Owners>
<Summary>Shared core for supabase-csharp</Summary>
<Title>Supabase Core</Title>
<Description>Shared core for supabase-csharp</Description>
<RootNamespace>Supabase.Core</RootNamespace>
<PackageIconUrl>https://avatars.githubusercontent.com/u/54469796?s=200&amp;v=4</PackageIconUrl>
<PackageLicenseUrl>https://github.com/supabase-community/core-csharp/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/supabase-community/core-csharp</PackageProjectUrl>
<PackageTags>supabase, core</PackageTags>
<PackageVersion>0.0.2</PackageVersion>
<ReleaseVersion>0.0.2</ReleaseVersion>
</PropertyGroup>

<PropertyGroup>
<Nullable>enable</Nullable>
<LangVersion>8.0</LangVersion>
<WarningsAsErrors>CS8600;CS8602;CS8603</WarningsAsErrors>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Supabase.Core</AssemblyName>
<RootNamespace>Supabase.Core</RootNamespace>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<TargetFramework>netstandard2.0</TargetFramework>
<PackOnBuild>true</PackOnBuild>
<PackageId>supabase-core</PackageId>
<Authors>Joseph Schultz &lt;[email protected]&gt;</Authors>
<Copyright>MIT</Copyright>
<NeutralLanguage>en</NeutralLanguage>
<Owners>Joseph Schultz &lt;[email protected]&gt;</Owners>
<Summary>Shared core for supabase-csharp</Summary>
<Title>Supabase Core</Title>
<Description>Shared core for supabase-csharp</Description>
<PackageIconUrl>https://avatars.githubusercontent.com/u/54469796?s=200&amp;v=4</PackageIconUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/supabase-community/core-csharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/supabase-community/core-csharp</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>supabase, core</PackageTags>
<PackageIcon>icon.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageVersion>0.0.3</PackageVersion>
<ReleaseVersion>0.0.3</ReleaseVersion>
</PropertyGroup>
<PropertyGroup>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<PropertyGroup>
<Nullable>enable</Nullable>
<LangVersion>8.0</LangVersion>
<WarningsAsErrors>CS8600;CS8602;CS8603</WarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<None Include="..\.github\icon.png" Pack="true" Link="icon.png" PackagePath="\" />
<None Include="..\README.md" Pack="true" Link="README.md" PackagePath="\" />
</ItemGroup>
</Project>

0 comments on commit 0896b05

Please sign in to comment.