From 205c5fcfc541f8526b1dc0545bfacb43281edbba Mon Sep 17 00:00:00 2001 From: Evan Hemsley <2342303+ehemsley@users.noreply.github.com> Date: Wed, 26 Jun 2019 22:21:04 -0700 Subject: [PATCH] circleCI --- .circleci/config.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..b415d24 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,43 @@ +version: 2.1 + +defaults: &defaults + working_directory: ~/repo + docker: + - image: mcr.microsoft.com/dotnet/core/sdk:2.2 + 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 + + deploy: + <<: *defaults + steps: + - checkout + - attach_workspace: + at: . + - run: + name: deploy to NuGet + command: | + dotnet nuget push ./encompass-cs/bin/Release/EncompassECS.Framework.*.nupkg -k $API_KEY -s $NUGET_SOURCE + +workflows: + version: 2 + test_and_deploy: + jobs: + - test + - deploy: + requires: + - test + filters: + branches: + ignore: /.*/ + tags: + only: /^[0-9]\.[0-9]\.[0-9]$/