Skip to content

Commit c92492e

Browse files
authored
Merge pull request #5 from datacute/release/1.0.0
Release/1.0.0
2 parents f11c0ed + 681d01b commit c92492e

35 files changed

+1091
-1246
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,36 @@ jobs:
3535
with:
3636
dotnet-version: '9.0.x'
3737

38+
- name: Get tag for current commit
39+
id: get_tag
40+
# Check for tags when triggered by main branch push (with tag) or direct tag push
41+
# Can't use github.ref_name because it's "main" when pushing branch+tag together
42+
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
43+
uses: olegtarasov/[email protected]
44+
45+
- name: Set Version Profile
46+
run: |
47+
if [[ "${{ steps.get_tag.outputs.tag }}" != "" ]]; then
48+
echo "VERSION_PROFILE=release" >> $GITHUB_ENV
49+
else
50+
echo "VERSION_PROFILE=ci" >> $GITHUB_ENV
51+
fi
52+
3853
- name: Restore dependencies
3954
run: dotnet restore $SOLUTION
4055

4156
- name: Build
42-
run: dotnet build $SOLUTION --configuration $BUILD_CONFIG --no-restore
57+
run: dotnet build $SOLUTION --configuration $BUILD_CONFIG --no-restore -p:GeneratePackageOnBuild=false -p:VersionProfile=${{ env.VERSION_PROFILE }}
4358

4459
- name: Run tests
45-
run: dotnet test --configuration $BUILD_CONFIG --no-restore --no-build --verbosity normal
60+
run: dotnet test --configuration $BUILD_CONFIG --no-restore --no-build --verbosity normal -p:VersionProfile=${{ env.VERSION_PROFILE }}
4661

4762
- name: Pack NuGet packages
4863
run: |
49-
dotnet pack $SOLUTION --configuration $BUILD_CONFIG --no-build --output ./artifacts
64+
dotnet pack $SOLUTION --configuration $BUILD_CONFIG --no-build --output ./artifacts -p:VersionProfile=${{ env.VERSION_PROFILE }}
5065
echo "=== Packages created ==="
5166
ls -la ./artifacts/
5267
53-
- name: Get tag for current commit
54-
id: get_tag
55-
# Check for tags when triggered by main branch push (with tag) or direct tag push
56-
# Can't use github.ref_name because it's "main" when pushing branch+tag together
57-
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
58-
uses: olegtarasov/[email protected]
59-
6068
- name: Extract release notes from CHANGELOG.md
6169
if: steps.get_tag.outputs.tag != ''
6270
id: extract_notes

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
- name: Restore, Build, and Pack
2222
run: |
2323
dotnet restore *.sln
24-
dotnet build *.sln --configuration Release --no-restore -p:ContinuousIntegrationBuild=true
25-
dotnet pack *.sln --configuration Release --no-build --output ./artifacts -p:ContinuousIntegrationBuild=true
24+
dotnet build *.sln --configuration Release --no-restore -p:ContinuousIntegrationBuild=true -p:GeneratePackageOnBuild=false -p:VersionProfile=release
25+
dotnet pack *.sln --configuration Release --no-build --output ./artifacts -p:ContinuousIntegrationBuild=true -p:VersionProfile=release
2626
2727
- name: Publish to NuGet
2828
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

CHANGELOG.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,24 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
99

10+
## [1.0.0] - 2025-08-03
11+
12+
### Changed
13+
14+
- Massive simplification by using Datacute.IncrementalGeneratorExtensions
15+
- Changed to use a builder style pattern for the pipeline Combines.
16+
- Replaced Numerous Attribute "Include x" Properties with a single flags enum.
17+
- Generate flags enum and attribute rather than including them in the package. (This results in more consistent package treatment as a source generator.)
18+
19+
### Added
20+
21+
- More docs
22+
1023
## [0.0.2-alpha] - 2025-07-12
1124

1225
### Fixed
@@ -58,5 +71,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5871
- MetadataReferencesProvider's MetadataReference details
5972
- Diagnostic log of the source generation process and timing included.
6073

61-
[Unreleased]: https://github.com/datacute/SourceGeneratorContext/compare/0.0.1-alpha...develop
62-
[0.0.1-alpha]: https://github.com/datacute/SourceGeneratorContext/releases/0.0.1-alpha
74+
[Unreleased]: https://github.com/datacute/SourceGeneratorContext/compare/1.0.0...develop
75+
[1.0.0]: https://github.com/datacute/SourceGeneratorContext/releases/tag/1.0.0
76+
[0.0.2-alpha]: https://github.com/datacute/SourceGeneratorContext/releases/tag/0.0.2-alpha
77+
[0.0.1-alpha]: https://github.com/datacute/SourceGeneratorContext/releases/tag/0.0.1-alpha

0 commit comments

Comments
 (0)