Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
lithiumtoast committed Aug 5, 2023
1 parent b7ffa12 commit cd9a74e
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 10 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ jobs:
path: "./lib"

- name: ".NET pack"
run: dotnet pack "./src/cs" --nologo --verbosity minimal --configuration Release --no-build -p:PackageVersion="$(date +'%Y.%m.%d')"
run: dotnet pack "./src/cs" --nologo --verbosity minimal --configuration Release --no-build -p:PackageVersion="$(date +'%Y.%m.%d')" -p:RepositoryBranch="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" -p:RepositoryCommit="${{ github.sha }}"

- name: "Upload packages"
- name: "Upload packages to MyGet"
if: github.event_name == 'workflow_dispatch'
run: dotnet nuget push "./nupkg/**/*.nupkg" --source https://www.myget.org/F/bottlenoselabs/api/v3/index.json --skip-duplicate --api-key $MYGET_ACCESS_TOKEN

- name: "Upload packages to NuGet"
if: github.event_name == 'schedule'
run: dotnet nuget push "./nupkg/**/*.nupkg" --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key $NUGET_ACCESS_TOKEN
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<!-- MSBuild settings -->
<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
<ImplicitUsings>false</ImplicitUsings>
<Nullable>disable</Nullable>
<NoPackageAnalysis>true</NoPackageAnalysis>
</PropertyGroup>

<!-- NuGet -->
<!-- NuGet settings -->
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>bottlenoselabs.Sokol.runtime.linux-x64</PackageId>
<PackageDescription>Automatically updated C# bindings for https://github.com/floooh/sokol.</PackageDescription>
<RepositoryUrl>https://github.com/bottlenoselabs/sokol-cs</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>_README_PACKAGE.md</PackageReadmeFile>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<DevelopmentDependency>true</DevelopmentDependency>
<IncludeBuildOutput>false</IncludeBuildOutput>
Expand Down
4 changes: 4 additions & 0 deletions src/cs/production/Sokol.runtime.linux-x64/_README_PACKAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

# bottlenoselabs.Sokol.runtime.linux-x64

Automatically updated C# bindings for https://github.com/floooh/sokol.
8 changes: 7 additions & 1 deletion src/cs/production/Sokol.runtime.osx/Sokol.runtime.osx.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<!-- MSBuild settings -->
<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
<ImplicitUsings>false</ImplicitUsings>
<Nullable>disable</Nullable>
<NoPackageAnalysis>true</NoPackageAnalysis>
</PropertyGroup>

<!-- NuGet -->
<!-- NuGet settings -->
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>bottlenoselabs.Sokol.runtime.osx-x64</PackageId>
<PackageDescription>Automatically updated C# bindings for https://github.com/floooh/sokol.</PackageDescription>
<RepositoryUrl>https://github.com/bottlenoselabs/sokol-cs</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>_README_PACKAGE.md</PackageReadmeFile>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<DevelopmentDependency>true</DevelopmentDependency>
<IncludeBuildOutput>false</IncludeBuildOutput>
Expand Down
4 changes: 4 additions & 0 deletions src/cs/production/Sokol.runtime.osx/_README_PACKAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

# bottlenoselabs.Sokol.runtime.osx

Automatically updated C# bindings for https://github.com/floooh/sokol.
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<!-- MSBuild settings -->
<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
<ImplicitUsings>false</ImplicitUsings>
<Nullable>disable</Nullable>
<NoPackageAnalysis>true</NoPackageAnalysis>
</PropertyGroup>

<!-- NuGet -->
<!-- NuGet settings -->
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>bottlenoselabs.Sokol.runtime.win-x64</PackageId>
<PackageDescription>Automatically updated C# bindings for https://github.com/floooh/sokol.</PackageDescription>
<RepositoryUrl>https://github.com/bottlenoselabs/sokol-cs</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>_README_PACKAGE.md</PackageReadmeFile>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<DevelopmentDependency>true</DevelopmentDependency>
<IncludeBuildOutput>false</IncludeBuildOutput>
Expand Down
4 changes: 4 additions & 0 deletions src/cs/production/Sokol.runtime.win-x64/_README_PACKAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

# bottlenoselabs.Sokol.runtime.win-x64

Automatically updated C# bindings for https://github.com/floooh/sokol.
16 changes: 11 additions & 5 deletions src/cs/production/Sokol/Sokol.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<!-- Sokol -->
<PropertyGroup>
<AssemblyName>Sokol-cs</AssemblyName> <!-- Used to avoid clash with 'sokol.dll' on Windows -->
</PropertyGroup>

<!-- MSBuild settings -->
<PropertyGroup>
<AssemblyName>Sokol-cs</AssemblyName> <!-- Used to avoid clash with 'sokol.dll' on Windows -->
<TargetFramework>net7.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<RootNamespace>bottlenoselabs.Sokol</RootNamespace>
Expand All @@ -17,6 +13,16 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<!-- NuGet settings -->
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>bottlenoselabs.Sokol</PackageId>
<PackageDescription>Automatically updated C# bindings for https://github.com/floooh/sokol.</PackageDescription>
<RepositoryUrl>https://github.com/bottlenoselabs/sokol-cs</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>_README_PACKAGE.md</PackageReadmeFile>
</PropertyGroup>

<!-- NuGet package references -->
<ItemGroup>
<PackageReference Include="bottlenoselabs.C2CS.Runtime" Version="6.1.2" />
Expand Down
4 changes: 4 additions & 0 deletions src/cs/production/Sokol/_README_PACKAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

# bottlenoselabs.Sokol

Automatically updated C# bindings for https://github.com/floooh/sokol.

0 comments on commit cd9a74e

Please sign in to comment.