Skip to content

Commit 2f4bb75

Browse files
Update to Cake 5.0 and Build/Push Updates (#89)
* Update to Cake 5.0 (#87) * Update to Cake 5.0 * Update nuspec * Remove Cake.Http addin and related files - Deleted the build script (build.sh) used for setting up the Cake environment. - Introduced a new configuration file (cake.config) for NuGet and paths. - Removed the Wyam configuration file (config.wyam). - Deleted custom CSS overrides (override.css) and associated assets (clippy.svg). - Removed JavaScript libraries (anchor.min.js, clipboard.min.js) that were previously included. - Deleted documentation files related to the Cake.Http release (new-release-0.2.0.md, index.cshtml, examples.md, usage/index.cshtml). - Removed the NuGet specification file (Cake.Http.nuspec) and the recipe file (recipe.cake). - Deleted the solution file (Cake.Http.sln) and its associated settings (Cake.Http.sln.DotSettings). - Removed the SolutionInfo.cs file that contained assembly information. - Deleted the packages configuration file (packages.config) for tools. * Add configuration files, update build process, and modify license year - 🛠️ Add dotnet-tools.json for tool configuration - 📝 Create CODEOWNERS for repository ownership - 🔄 Add dependabot.yml for dependency updates - 🚀 Implement GitHub Actions workflow for build and release - 📄 Update LICENSE year to 2025 - 📖 Revise README for clarity - 🖼️ Add cake-addin.png asset - 🔧 Update build.cake to reference correct solution and project files Signed-off-by: Louis Fischer <[email protected]> * Update build configuration, improve project settings, and enhance README - 🛠️ Add CAKE_SETTINGS_SKIPPACKAGEVERSIONCHECK to build.yml - 📦 Update .gitignore to include .cake and artifact - 🔧 Modify build.cake for improved task handling and configuration - 📄 Revise README.md to remove outdated information - 📈 Enhance Cake.Http.csproj with additional properties and metadata Signed-off-by: Louis Fischer <[email protected]> * Refactor request body validation in HttpSettingsExtensions - 🛠️ Change validation to only check for null request body - 🔄 Update handling of whitespace in request body - ✅ Improve exception handling for null parameters Signed-off-by: Louis Fischer <[email protected]> * Remove the pull request template from the repository. - 🗑️ Deleted the PULL_REQUEST_TEMPLATE.md file - ✨ Streamlined the contribution process Signed-off-by: Louis Fischer <[email protected]> * Update project files to target .NET 8.0 only - 🔧 Change TargetFrameworks to TargetFramework in Cake.Http and Cake.Http.Tests projects - 🛠️ Remove .NET 9.0 from target frameworks Signed-off-by: Louis Fischer <[email protected]> * Update build configuration and target frameworks - 🖥️ Change build runner from Ubuntu to Windows - 🔄 Update target frameworks to include .NET 9.0 Signed-off-by: Louis Fischer <[email protected]> --------- Signed-off-by: Louis Fischer <[email protected]> Co-authored-by: Toni Wenzel <[email protected]>
1 parent cefac9d commit 2f4bb75

36 files changed

+290
-828
lines changed

.appveyor.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.config/dotnet-tools.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"cake.tool": {
6+
"version": "5.0.0",
7+
"commands": [
8+
"dotnet-cake"
9+
]
10+
},
11+
"minver-cli": {
12+
"version": "6.0.0",
13+
"commands": [
14+
"minver"
15+
]
16+
}
17+
}
18+
}

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @cake-contrib/team-louisfischer

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "nuget" # See documentation for possible values
4+
directory: "/" # Location of package manifests
5+
schedule:
6+
interval: "weekly"

.github/workflows/build.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Build & Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
target:
7+
description: 'Task'
8+
required: true
9+
default: Default
10+
type: choice
11+
options:
12+
- Default
13+
- Clean
14+
- Restore
15+
- Build
16+
- Tests
17+
- Pack
18+
- Push
19+
20+
pushToNuget:
21+
description: 'Push to Nuget'
22+
required: false
23+
default: false
24+
type: boolean
25+
26+
logLevel:
27+
description: 'Verbosity'
28+
required: false
29+
default: Normal
30+
type: choice
31+
options:
32+
- Quiet
33+
- Minimal
34+
- Normal
35+
- Verbose
36+
- Diagnostic
37+
pull_request:
38+
branches:
39+
- "**"
40+
paths-ignore:
41+
- "README.md"
42+
43+
env:
44+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
45+
DOTNET_CLI_TELEMETRY_OPTOUT: true
46+
DOTNET_NOLOGO: true
47+
CAKE_SETTINGS_SKIPPACKAGEVERSIONCHECK: true
48+
49+
jobs:
50+
build:
51+
runs-on: ${{ matrix.os }}
52+
strategy:
53+
matrix:
54+
os: [windows-latest]
55+
56+
name: ${{ matrix.os }}
57+
steps:
58+
- name: Setup .NET
59+
uses: actions/setup-dotnet@v4
60+
with:
61+
dotnet-version: ${{ vars.CAKE_DOTNET_VERSION }}
62+
63+
- name: Checkout
64+
uses: actions/checkout@v4
65+
with:
66+
fetch-depth: 0
67+
68+
- name: Run the Cake script
69+
uses: cake-build/cake-action@v3
70+
with:
71+
target: ${{ inputs.target || 'Default' }}
72+
verbosity: ${{ inputs.logLevel || 'Normal' }}
73+
cake-version: tool-manifest
74+
arguments: |
75+
NUGET_PUSH: ${{ inputs.pushToNuget || false }}
76+
NUGET_URL: ${{ secrets.NUGET_SOURCE }}
77+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,4 +276,7 @@ __pycache__/
276276
# Cake - Uncomment if you are using it
277277
tools/**
278278
!tools/packages.config
279-
BuildArtifacts/
279+
BuildArtifacts/
280+
281+
.cake
282+
artifact

Cake.Http.slnx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<Solution>
2+
<Project Path="src/Cake.Http.Tests/Cake.Http.Tests.csproj" />
3+
<Project Path="src/Cake.Http/Cake.Http.csproj" />
4+
</Solution>

GitReleaseManager.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017-2024 Cake Contributions Organization
3+
Copyright (c) 2017-2025 Cake Contributions Organization
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

0 commit comments

Comments
 (0)