Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
Evan Hemsley | a3a5803961 | |
Evan Hemsley | cda67af5b6 | |
Evan Hemsley | 05e1b2f8db | |
Evan Hemsley | 2dbf5e22f7 | |
Evan Hemsley | 7481c4d9a9 |
|
@ -1,46 +0,0 @@
|
|||
version: 2.1
|
||||
|
||||
defaults: &defaults
|
||||
working_directory: ~/repo
|
||||
docker:
|
||||
- image: mcr.microsoft.com/dotnet/core/sdk:3.0
|
||||
environment:
|
||||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||||
|
||||
jobs:
|
||||
test:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- checkout
|
||||
- run: dotnet restore
|
||||
- run: dotnet build -c Release
|
||||
- run: dotnet test -c Release
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths: ./Structs/bin
|
||||
|
||||
deploy:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run: dotnet nuget push ./Structs/bin/Release/MoonTools.Core.Structs.*.nupkg -k $API_KEY -s https://api.nuget.org/v3/index.json
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
test_and_deploy:
|
||||
jobs:
|
||||
- test:
|
||||
filters:
|
||||
tags:
|
||||
only: /.*/
|
||||
- deploy:
|
||||
requires:
|
||||
- test
|
||||
filters:
|
||||
branches:
|
||||
ignore: /.*/
|
||||
tags:
|
||||
only: /^\d+\.\d+\.\d+(-rc\d+)?$/
|
|
@ -14,8 +14,11 @@ steps:
|
|||
|
||||
- name: deploy
|
||||
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
||||
environment:
|
||||
API_KEY:
|
||||
from_secret: API_KEY
|
||||
commands:
|
||||
- dotnet nuget push /build/Structs/bin/Release/MoonTools.Core.Structs.*.nupkg -k $API_KEY -s https://api.nuget.org/v3/index.json
|
||||
- dotnet nuget push /build/Structs/bin/Release/MoonTools.Structs.*.nupkg -s https://api.nuget.org/v3/index.json -k $API_KEY
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/*.*.*
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# MoonTools.Core.Structs
|
||||
# MoonTools.Structs
|
||||
|
||||
[![NuGet Badge](https://buildstats.info/nuget/MoonTools.Core.Structs)](https://www.nuget.org/packages/MoonTools.Core.Structs/)
|
||||
[![CircleCI](https://circleci.com/gh/MoonsideGames/MoonTools.Core.Structs.svg?style=svg)](https://circleci.com/gh/MoonsideGames/MoonTools.Core.Structs)
|
||||
[![NuGet Badge](https://buildstats.info/nuget/MoonTools.Structs)](https://www.nuget.org/packages/MoonTools.Structs/)
|
||||
[![Build Status](https://drone.moonside.games/api/badges/MoonsideGames/MoonTools.Structs/status.svg)](https://drone.moonside.games/MoonsideGames/MoonTools.Structs)
|
||||
|
||||
This library contains structs that are generally useful in other MoonTools libraries.
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Numerics;
|
||||
|
||||
namespace MoonTools.Core.Structs
|
||||
namespace MoonTools.Structs
|
||||
{
|
||||
public struct Position2D : IEquatable<Position2D>
|
||||
{
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<RootNamespace>MoonTools.Core.Structs</RootNamespace>
|
||||
<PackageId>MoonTools.Core.Structs</PackageId>
|
||||
<RootNamespace>MoonTools.Structs</RootNamespace>
|
||||
<PackageId>MoonTools.Structs</PackageId>
|
||||
<Version>3.0.1</Version>
|
||||
<Authors>Evan Hemsley</Authors>
|
||||
<Company>Moonside Games</Company>
|
||||
<Product>MoonTools Core Structs</Product>
|
||||
<Copyright>Evan Hemsley 2020</Copyright>
|
||||
<Description>.NET Core Utility Structs for MonoGame</Description>
|
||||
<Description>.NET Standard utility structs for game development</Description>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<AssemblyName>MoonTools.Core.Structs</AssemblyName>
|
||||
<PackageProjectUrl>https://github.com/MoonsideGames/MoonTools.Core.Structs</PackageProjectUrl>
|
||||
<AssemblyName>MoonTools.Structs</AssemblyName>
|
||||
<PackageProjectUrl>https://gitea.moonside.games/MoonsideGames/MoonTools.Structs</PackageProjectUrl>
|
||||
<PackageLicenseExpression>LGPL-3.0-only</PackageLicenseExpression>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Numerics;
|
||||
|
||||
namespace MoonTools.Core.Structs
|
||||
namespace MoonTools.Structs
|
||||
{
|
||||
public struct Transform2D : IEquatable<Transform2D>
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
|
||||
using MoonTools.Core.Structs;
|
||||
using MoonTools.Structs;
|
||||
using System.Numerics;
|
||||
|
||||
namespace Tests
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
|
||||
using MoonTools.Core.Structs;
|
||||
using MoonTools.Structs;
|
||||
using System.Numerics;
|
||||
|
||||
namespace Tests
|
||||
|
|
Loading…
Reference in New Issue