-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
187 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
Castoreum.Installation/Castoreum - Backup.Installation.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters