Skip to content

Commit

Permalink
version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Zt-freak committed Sep 22, 2022
1 parent c88ad13 commit 7d1bff3
Show file tree
Hide file tree
Showing 11 changed files with 187 additions and 11 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build

on:
push:
branches:
- main
- develop
pull_request:

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test -c Release --no-build
26 changes: 26 additions & 0 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release to NuGet

on:
workflow_dispatch:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test -c Release --no-build
- name: Pack nugets
run: dotnet pack -c Release --no-build --output .
- name: GitHub auth
run: dotnet nuget add source --username USERNAME --password ${{ secrets.GH_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Zt-freak/index.json"
- name: Push to GitHub Packages
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.GH_TOKEN}} --source "github"
24 changes: 24 additions & 0 deletions .github/workflows/nuget-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release to NuGet

on:
workflow_dispatch:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test -c Release --no-build
- name: Pack nugets
run: dotnet pack -c Release --no-build --output .
- name: Push to NuGet
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
18 changes: 17 additions & 1 deletion Castoreum.Compression/Castoreum.Compression.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
<Company>ZtModArchive</Company>
<Version>2.0.0</Version>
<PackageProjectUrl>https://github.com/ZtModArchive/Castoreum</PackageProjectUrl>
<RepositoryUrl>https://github.com/ZtModArchive/Castoreum</RepositoryUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Copyright>MIT</Copyright>
<Title>$(AssemblyName)</Title>
<PackageTags>ZooTycoon2</PackageTags>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>

<ItemGroup>
<None Include="..\icon.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Castoreum.Interface\Castoreum.Interface.csproj" />
</ItemGroup>
Expand Down
18 changes: 17 additions & 1 deletion Castoreum.Config/Castoreum.Config.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
<Company>ZtModArchive</Company>
<Version>2.0.0</Version>
<PackageProjectUrl>https://github.com/ZtModArchive/Castoreum</PackageProjectUrl>
<RepositoryUrl>https://github.com/ZtModArchive/Castoreum</RepositoryUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Copyright>MIT</Copyright>
<Title>$(AssemblyName)</Title>
<PackageTags>ZooTycoon2</PackageTags>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>

<ItemGroup>
<None Include="..\icon.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions Castoreum.Config/Models/CastorConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public class CastorConfig : IConfig
"world",
"xpinfo"
};
public IEnumerable<string> ExcludeFolders { get; set; }
public IEnumerable<string> Dependencies { get; set; }
public IEnumerable<string> DevDependencies { get; set; }
public IEnumerable<string> ExcludeFolders { get; set; } = new List<string>();
public IEnumerable<string> Dependencies { get; set; } = new List<string>();
public IEnumerable<string> DevDependencies { get; set; } = new List<string>();
}
}
24 changes: 24 additions & 0 deletions Castoreum.Installation/Castoreum - Backup.Installation.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
<Product>ZtModArchive</Product>
<Version>2.0.0</Version>
<PackageProjectUrl>https://github.com/ZtModArchive/Castoreum</PackageProjectUrl>
<RepositoryUrl>https://github.com/ZtModArchive/Castoreum</RepositoryUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Copyright>MIT</Copyright>
<Title>$(AssemblyName)</Title>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="System.Linq" Version="4.3.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Castoreum.Config\Castoreum.Config.csproj" />
<ProjectReference Include="..\Castoreum.Interface\Castoreum.Interface.csproj" />
</ItemGroup>

</Project>
20 changes: 18 additions & 2 deletions Castoreum.Installation/Castoreum.Installation.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
<Product>ZtModArchive</Product>
<Version>2.0.0</Version>
<PackageProjectUrl>https://github.com/ZtModArchive/Castoreum</PackageProjectUrl>
<RepositoryUrl>https://github.com/ZtModArchive/Castoreum</RepositoryUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Copyright>MIT</Copyright>
<Title>$(AssemblyName)</Title>
<PackageTags>ZooTycoon2</PackageTags>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>

<ItemGroup>
<None Include="..\icon.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="System.Linq" Version="4.3.0" />
Expand Down
20 changes: 18 additions & 2 deletions Castoreum.Interface/Castoreum.Interface.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
<Company>ZtModArchive</Company>
<Version>2.0.0</Version>
<PackageProjectUrl>https://github.com/ZtModArchive/Castoreum</PackageProjectUrl>
<RepositoryUrl>https://github.com/ZtModArchive/Castoreum</RepositoryUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Copyright>MIT</Copyright>
<Title>$(AssemblyName)</Title>
<PackageTags>ZooTycoon2</PackageTags>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>

<ItemGroup>
<None Include="..\icon.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

</Project>
20 changes: 18 additions & 2 deletions Castoreum.Watch/Castoreum.Watch.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
<Company>ZtModArchive</Company>
<Version>2.0.0</Version>
<PackageProjectUrl>https://github.com/ZtModArchive/Castoreum</PackageProjectUrl>
<RepositoryUrl>https://github.com/ZtModArchive/Castoreum</RepositoryUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Copyright>MIT</Copyright>
<Title>$(AssemblyName)</Title>
<PackageTags>ZooTycoon2</PackageTags>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>

<ItemGroup>
<None Include="..\icon.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Castoreum.Interface\Castoreum.Interface.csproj" />
</ItemGroup>
Expand Down
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7d1bff3

Please sign in to comment.