Skip to content

Commit e6bd32b

Browse files
authored
5.3
1 parent 7900803 commit e6bd32b

22 files changed

+529
-1181
lines changed

.github/workflows/lib.yml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
name: Release
2+
3+
env:
4+
VERSION: '5.3.0'
5+
ASM_VERSION: '5.0.0'
6+
VERSION_SUFFIX: '-pre.1'
7+
# VERSION_SUFFIX: ''
8+
9+
on:
10+
push:
11+
branches:
12+
- master
13+
pull_request:
14+
branches:
15+
- master
16+
workflow_dispatch:
17+
18+
jobs:
19+
20+
test:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Setup .NET Core
25+
uses: actions/setup-dotnet@v4
26+
with:
27+
dotnet-version: |
28+
6.0.x
29+
8.0.x
30+
- name: run tests
31+
run: dotnet test src/Config.Net.sln -c release --filter Category!=Integration
32+
33+
build:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- name: Setup .NET
38+
uses: actions/setup-dotnet@v4
39+
with:
40+
dotnet-version: |
41+
6.0.x
42+
8.0.x
43+
- name: Build
44+
run: dotnet build src/Config.Net.sln --configuration Release /p:Version=${{ env.VERSION }}${{ env.VERSION_SUFFIX }} /p:FileVersion=${{ env.VERSION }} /p:AssemblyVersion=${{ env.ASM_VERSION }}
45+
- name: collect artifacts
46+
run: |
47+
mkdir -p artifacts
48+
cp src/Config.Net/bin/Release/*.nupkg artifacts/
49+
echo "${{ env.VERSION }}" >> artifacts/version.txt
50+
cp docs/release-history.md artifacts/
51+
grep -m 2 -B 1000 '^## ' artifacts/release-history.md | tail -n +3 | head -n -2 > artifacts/release-notes.md
52+
cat artifacts/release-notes.md
53+
- name: upload artifacts
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: bin
57+
path: artifacts/*
58+
59+
release:
60+
runs-on: ubuntu-latest
61+
needs:
62+
- build
63+
- test
64+
if: github.ref == 'refs/heads/master'
65+
steps:
66+
67+
- uses: actions/download-artifact@v4
68+
with:
69+
name: bin
70+
71+
# publish to nuget regardless
72+
- name: Push to nuget.org
73+
run: dotnet nuget push bin/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
74+
75+
- name: prerelease
76+
if: ${{ env.VERSION_SUFFIX }}
77+
run: echo 'hey'
78+
79+
- name: release
80+
if: ${{ !env.VERSION_SUFFIX }}
81+
run: echo 'hey'
82+
83+
84+
# publish:
85+
# needs:
86+
# - build
87+
# - test
88+
# if: github.ref == 'refs/heads/master'
89+
# runs-on: ubuntu-latest
90+
# environment: nuget
91+
# steps:
92+
# - name: Download a Build Artifact
93+
# uses: actions/download-artifact@v2
94+
# with:
95+
# name: packages
96+
# - name: Push to nuget.org
97+
# run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
98+
# - name: Release
99+
# uses: softprops/action-gh-release@v1
100+
# if: github.ref == 'refs/heads/master'
101+
# with:
102+
# tag_name: ${{ env.v }}
103+
# name: ${{ env.v }}
104+
# files: "src/*.zip"
105+
# generate_release_notes: true

.github/workflows/release.yml

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

docs/README.md

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -745,35 +745,14 @@ Azure function [configuration](https://docs.microsoft.com/en-us/azure/azure-func
745745

746746
## Sponsorship
747747

748-
This framework is free and can be used for free, open source and commercial applications. Config.Net (all code, NuGets and binaries) are under the [MIT License (MIT)](https://github.com/aloneguid/config/blob/master/LICENSE). It's battle-tested and used by many awesome people and organisations. So hit the magic ⭐️ button, we appreciate it!!! 🙏 Thx!
748+
This framework is free and can be used for free, open source and commercial applications. Config.Net (all code, NuGets and binaries) are under the [MIT License (MIT)](https://github.com/aloneguid/config/blob/master/LICENSE). It's battle-tested and used by many awesome people and organisations. So hit the magic ⭐️ button, I appreciate it!!! 🙏 Thx!
749749

750750
The core team members, Config.Net contributors and contributors in the ecosystem do this open source work in their free time. If you use Config.Net, and you'd like us to invest more time on it, please donate. This project increases your income/productivity/usabilty too.
751751

752-
### Why charge/sponsor for open source?
753-
754-
* [Open-Source Maintainers are Jerks! | Nick Randolph & Geoffrey Huntley](https://vimeo.com/296579853)
755-
* [FOSS is free as in toilet | Geoffroy Couprie](http://unhandledexpression.com/general/2018/11/27/foss-is-free-as-in-toilet.html)
756-
* [How to Charge for your Open Source | Mike Perham](https://www.mikeperham.com/2015/11/23/how-to-charge-for-your-open-source/)
757-
* [Sustain OSS: The Report](https://sustainoss.org/assets/pdf/SustainOSS-west-2017-report.pdf)
758-
* [Open Source Maintainers Owe You Nothing | Mike McQuaid](https://mikemcquaid.com/2018/03/19/open-source-maintainers-owe-you-nothing/)
759-
* [Who should fund open source projects? | Jane Elizabeth](https://jaxenter.com/who-funds-open-source-projects-133222.html)
760-
* [Apply at OSS Inc today| Ryan Chenkie](https://twitter.com/ryanchenkie/status/1067801413974032385)
761-
* [The Ethics of Unpaid Labor and the OSS Community | Ashe Dryden](https://www.ashedryden.com/blog/the-ethics-of-unpaid-labor-and-the-oss-community)
762-
763-
### Backers
764-
765-
Become a backer and show your support to our open source project.
766-
767-
[![](https://opencollective.com/config/backers.svg)](https://opencollective.com/config#support)
768-
769752
### Sponsors
770753

771754
Does your company use Config.Net? Ask your manager or marketing team if your company would be interested in supporting our project. Support will allow the maintainers to dedicate more time for maintenance and new features for everyone. Also, your company's logo will show here - who doesn't want a little extra exposure?
772755

773-
[![](https://opencollective.com/config/sponsors.svg)](https://opencollective.com/config#sponsor)
774-
775-
776756
## Special Thanks
777757

778-
Thanks to [JetBrains](https://www.jetbrains.com) for kindly providing an open-source license to their amazing [Rider IDE](https://www.jetbrains.com/rider/) for Open Source Development.
779-
![Rider logo](https://resources.jetbrains.com/storage/products/company/brand/logos/Rider_icon.svg)
758+
This project would not be possible without [Castle DynamicProxy project](https://www.castleproject.org/projects/dynamicproxy/) - a lightweight .NET proxy generator.

docs/release-history.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## 5.3.0
2+
3+
### Improvements
4+
5+
- Upgraded dependent libraries.
6+
7+
## 5.2.0
8+
9+
This release introduces support for `.env` files.

src/Config.Net.Tests/AssemblyConfigStoreTest.cs

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

src/Config.Net.Tests/Config.Net.Tests.csproj

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<VersionPrefix>3.0.0</VersionPrefix>
4-
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
3+
<TargetFrameworks>net8.0</TargetFrameworks>
54
</PropertyGroup>
65

7-
86
<ItemGroup>
97
<None Update="TestData\.env">
108
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
@@ -24,17 +22,16 @@
2422
</None>
2523
</ItemGroup>
2624
<ItemGroup>
27-
<ProjectReference Include="..\Config.Net.Yaml\Config.Net.Yaml.csproj" />
2825
<ProjectReference Include="..\Config.Net\Config.Net.csproj" />
2926
</ItemGroup>
3027
<ItemGroup>
31-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
28+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
3229
<PackageReference Include="Storage.Net" Version="9.3.0" />
33-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
30+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
3431
<PrivateAssets>all</PrivateAssets>
3532
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3633
</PackageReference>
37-
<PackageReference Include="xunit" Version="2.4.1" />
34+
<PackageReference Include="xunit" Version="2.9.2" />
3835
<PackageReference Include="netbox" Version="2.5.3" />
3936
</ItemGroup>
4037
<ItemGroup>

0 commit comments

Comments
 (0)