From e343482234132232e606abb2854ef4119a301bb5 Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Wed, 30 Oct 2019 20:17:26 -0700 Subject: [PATCH] deployment stuff --- .circleci/config.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++ Easing/Easing.csproj | 12 ++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..5a48b03 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,46 @@ +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: ./Easing/bin + + deploy: + <<: *defaults + steps: + - checkout + - attach_workspace: + at: . + - run: dotnet nuget push ./Easing/bin/Release/MoonTools.Core.Easing.*.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+(-preview\d*)?$/ diff --git a/Easing/Easing.csproj b/Easing/Easing.csproj index 72764a6..bba0287 100644 --- a/Easing/Easing.csproj +++ b/Easing/Easing.csproj @@ -1,7 +1,19 @@ + 1.0.0 netstandard2.0 + .NET Core Easing Functions + MoonTools.Core.Easing + MoonTools.Core.Easing + Moonside Games + Evan Hemsley + Evan Hemsley 2019 + MoonTools.Core.Easing + true + MoonTools.Core.Easing + LGPL-3.0-only + https://github.com/MoonsideGames/MoonTools.Core.Easing