From b531b9816825de3e76522f51df47d78c93751579 Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Mon, 7 Dec 2020 17:47:34 +0100 Subject: [PATCH] Removed unnecessary targets Pack fix Added release prop Added nuget push + nuspec changes Added tags filter to workflow Modified filter Updated push comand This filter should do it Added wildcard in push command --- .circleci/config.yml | 21 ++++++++++++++++--- .../GrasshopperAsyncComponent.nuspec | 2 +- .../GrasshopperAsyncComponentDemo.csproj | 10 --------- 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 61769eb..55d1db1 100755 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,9 +4,9 @@ orbs: win: circleci/windows@2.2.0 jobs: - build: + build-and-publish: executor: win/default - + steps: - checkout - run: @@ -17,6 +17,21 @@ jobs: command: msbuild GrasshopperAsyncComponent.sln /p:Configuration=Release - run: name: Pack NuGet - command: nuget pack GrasshopperAsyncComponent/GrasshopperAsyncComponent.csproj + command: cd GrasshopperAsyncComponent; nuget pack GrasshopperAsyncComponent.csproj -Prop Configuration=Release + - run: + name: Pack NuGet + command: nuget push ${NUGET_AUTH_TOKEN} -Source https://api.nuget.org/v3/index.json *.nupkg +workflows: + publish: + jobs: + - build-and-publish: + filters: + tags: + only: /^v.*/ + branches: + ignore: /.*/ + + + \ No newline at end of file diff --git a/GrasshopperAsyncComponent/GrasshopperAsyncComponent.nuspec b/GrasshopperAsyncComponent/GrasshopperAsyncComponent.nuspec index 0d482da..5a7607e 100755 --- a/GrasshopperAsyncComponent/GrasshopperAsyncComponent.nuspec +++ b/GrasshopperAsyncComponent/GrasshopperAsyncComponent.nuspec @@ -2,7 +2,7 @@ GrasshopperAsyncComponent - 1.0.0.0 + 0.1.0.0 GrasshopperAsyncComponent Speckle Systems false diff --git a/GrasshopperAsyncComponentDemo/GrasshopperAsyncComponentDemo.csproj b/GrasshopperAsyncComponentDemo/GrasshopperAsyncComponentDemo.csproj index cc2af6e..0f12d45 100644 --- a/GrasshopperAsyncComponentDemo/GrasshopperAsyncComponentDemo.csproj +++ b/GrasshopperAsyncComponentDemo/GrasshopperAsyncComponentDemo.csproj @@ -57,7 +57,6 @@ - @@ -97,13 +96,4 @@ Program - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - \ No newline at end of file