From e7a1a2430f6c56e158b21eeba9086b204a094e51 Mon Sep 17 00:00:00 2001 From: Nicholas Schell Date: Thu, 8 May 2025 20:32:52 -0700 Subject: [PATCH 1/7] drop Version and PackageReleaseNotes attributes from csproj add new PropertyGroup with metadata we are changing point to our repo for project/repo urls --- DigitalOcean.API/DigitalOcean.API.csproj | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/DigitalOcean.API/DigitalOcean.API.csproj b/DigitalOcean.API/DigitalOcean.API.csproj index d6bcf74..6a73585 100644 --- a/DigitalOcean.API/DigitalOcean.API.csproj +++ b/DigitalOcean.API/DigitalOcean.API.csproj @@ -3,22 +3,17 @@ net6.0 true vevix - 5.3.0-rc3 - 5.3.0-rc2 .NET wrapper of the DigitalOcean API 2019 DigitalOcean.API MIT - https://github.com/trmcnvn/DigitalOcean.API http://i.imgur.com/llqIpX6.png icon.png - https://github.com/trmcnvn/DigitalOcean.API DigitalOcean API - - ### Added - - - Added ContainerRegistry client. (@JoshClose) - + + + https://github.com/millicast/DigitalOcean.API + https://github.com/millicast/DigitalOcean.API From ad79d9d388e90607f192629a1863f02d9fab074c Mon Sep 17 00:00:00 2001 From: Nicholas Schell Date: Thu, 8 May 2025 20:33:48 -0700 Subject: [PATCH 2/7] add deploy-nupkg workflow --- .github/workflows/deploy-nupkg.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/deploy-nupkg.yml diff --git a/.github/workflows/deploy-nupkg.yml b/.github/workflows/deploy-nupkg.yml new file mode 100644 index 0000000..4ac5865 --- /dev/null +++ b/.github/workflows/deploy-nupkg.yml @@ -0,0 +1,11 @@ +name: deploy-nupkg + +on: + push: + tags: + - '**' + +jobs: + deploy: + uses: millicast/github-actions-internal/.github/workflows/build_nupkg.yml@IOPS-5066 + secrets: inherit From 16ecd1a6e6382cb9512b241105f425faacf3a157 Mon Sep 17 00:00:00 2001 From: Nicholas Schell Date: Thu, 8 May 2025 20:41:25 -0700 Subject: [PATCH 3/7] add gitversion config with base next-version set --- .gitversion.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .gitversion.yml diff --git a/.gitversion.yml b/.gitversion.yml new file mode 100644 index 0000000..73b07e3 --- /dev/null +++ b/.gitversion.yml @@ -0,0 +1,46 @@ +workflow: GitFlow/v1 +# base version +next-version: 5.3.0 +branches: + release: + label: rc + source-branches: + - main + + feature: + prevent-increment: + when-current-commit-tagged: true + source-branches: + - main + - develop + - release + - hotfix + + develop: + # we use the branch name next + regex: ^next$ + + hotfix: + source-branches: + - main + + unknown: + source-branches: + - main + - develop + - release + - feature + - pull-request + - hotfix + + pull-request: + source-branches: + - main + - develop + - release + - feature + - hotfix + + # disabling + support: + regex: ^$ From 4cbfc1c55a9313ec07b92839535c8bfe8ee0b744 Mon Sep 17 00:00:00 2001 From: Nicholas Schell Date: Thu, 8 May 2025 21:00:23 -0700 Subject: [PATCH 4/7] add IsPackable=false and IsTestProject=true to Tests project --- DigitalOcean.API.Tests/DigitalOcean.API.Tests.csproj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DigitalOcean.API.Tests/DigitalOcean.API.Tests.csproj b/DigitalOcean.API.Tests/DigitalOcean.API.Tests.csproj index 3ed484e..ffabb3b 100644 --- a/DigitalOcean.API.Tests/DigitalOcean.API.Tests.csproj +++ b/DigitalOcean.API.Tests/DigitalOcean.API.Tests.csproj @@ -1,6 +1,8 @@ - + net6.0 + false + true From e6475387bb291aaba71f27325b47e1765121ee10 Mon Sep 17 00:00:00 2001 From: Nicholas Schell Date: Thu, 8 May 2025 21:01:00 -0700 Subject: [PATCH 5/7] upgrade unit test dependencies to latest versions add NSubstitute.Analyzers.CSharp as well --- .../DigitalOcean.API.Tests.csproj | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/DigitalOcean.API.Tests/DigitalOcean.API.Tests.csproj b/DigitalOcean.API.Tests/DigitalOcean.API.Tests.csproj index ffabb3b..916202c 100644 --- a/DigitalOcean.API.Tests/DigitalOcean.API.Tests.csproj +++ b/DigitalOcean.API.Tests/DigitalOcean.API.Tests.csproj @@ -5,13 +5,12 @@ true - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - + + + + + + From 2ba3de9afc694d44ba38068063e94210696adb1c Mon Sep 17 00:00:00 2001 From: Nicholas Schell Date: Thu, 8 May 2025 21:03:45 -0700 Subject: [PATCH 6/7] add explicit IsPackable attribute to main project --- DigitalOcean.API/DigitalOcean.API.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/DigitalOcean.API/DigitalOcean.API.csproj b/DigitalOcean.API/DigitalOcean.API.csproj index 6a73585..7e19cd5 100644 --- a/DigitalOcean.API/DigitalOcean.API.csproj +++ b/DigitalOcean.API/DigitalOcean.API.csproj @@ -10,6 +10,7 @@ http://i.imgur.com/llqIpX6.png icon.png DigitalOcean API + true https://github.com/millicast/DigitalOcean.API From f35ddf8f5677290d24e57dcb525905702555d806 Mon Sep 17 00:00:00 2001 From: Nicholas Schell Date: Thu, 8 May 2025 21:12:20 -0700 Subject: [PATCH 7/7] disable main workflow --- .github/workflows/main.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 121bbe1..9fe026b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,14 +1,16 @@ name: DigitalOcean.API CI on: - push: - branches: - - "*" - pull_request: - branches: - - "*" - release: - types: - - created +# push: +# branches: +# - "*" +# pull_request: +# branches: +# - "*" +# release: +# types: +# - created + workflow_dispatch: + jobs: build: strategy: