Skip to content

Commit 41ca887

Browse files
committed
Release v1.1.0: API enhancements, documentation, and CI/CD
Features: - Add TryGetValue and TryGetValue<T> non-throwing methods - Add GetValue<T> generic type conversion - Extend dictionary support (IDictionary, ExpandoObject) - Add ignoreCase parameter to extension methods Documentation: - Rewrite README.md with comprehensive examples - Add docs/API.md with full API reference - Add docs/CHANGELOG.md Quality: - Add 25 edge case tests (95 total tests) - Fix nullable warnings in test code - Improve exception messages with full path context CI/CD: - Add GitHub Actions workflow for NuGet publishing - Trigger on Directory.Build.props changes - Auto-extract version and create GitHub release
1 parent aa5614a commit 41ca887

9 files changed

Lines changed: 1844 additions & 193 deletions

File tree

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: NuGet Publish
2+
3+
on:
4+
push:
5+
paths:
6+
- 'src/Directory.Build.props'
7+
branches:
8+
- main
9+
- master
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: |
23+
8.0.x
24+
9.0.x
25+
10.0.x
26+
27+
- name: Extract version from Directory.Build.props
28+
id: version
29+
run: |
30+
VERSION=$(grep -oP '(?<=<Version>)[^<]+' src/Directory.Build.props)
31+
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
32+
echo "Extracted version: $VERSION"
33+
34+
- name: Restore dependencies
35+
run: dotnet restore src/ObjectPath.sln
36+
37+
- name: Build
38+
run: dotnet build src/ObjectPath.sln -c Release --no-restore
39+
40+
- name: Test
41+
run: dotnet test src/ObjectPath.sln -c Release --no-build --verbosity normal
42+
43+
- name: Pack
44+
run: dotnet pack src/ObjectPath/ObjectPath.csproj -c Release --no-build -o ./nupkg
45+
46+
- name: Publish to NuGet
47+
run: dotnet nuget push ./nupkg/ObjectPath.${{ steps.version.outputs.VERSION }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
48+
49+
- name: Create GitHub Release
50+
uses: softprops/action-gh-release@v1
51+
with:
52+
tag_name: v${{ steps.version.outputs.VERSION }}
53+
name: Release v${{ steps.version.outputs.VERSION }}
54+
body: |
55+
## ObjectPath v${{ steps.version.outputs.VERSION }}
56+
57+
See [CHANGELOG](docs/CHANGELOG.md) for details.
58+
59+
### Installation
60+
```bash
61+
dotnet add package ObjectPath --version ${{ steps.version.outputs.VERSION }}
62+
```
63+
draft: false
64+
prerelease: false
65+
env:
66+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)