Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,36 @@ jobs:
with:
dotnet-version: '9.0.x'

- name: Get tag for current commit
id: get_tag
# Check for tags when triggered by main branch push (with tag) or direct tag push
# Can't use github.ref_name because it's "main" when pushing branch+tag together
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
uses: olegtarasov/[email protected]

- name: Set Version Profile
run: |
if [[ "${{ steps.get_tag.outputs.tag }}" != "" ]]; then
echo "VERSION_PROFILE=release" >> $GITHUB_ENV
else
echo "VERSION_PROFILE=ci" >> $GITHUB_ENV
fi

- name: Restore dependencies
run: dotnet restore $SOLUTION

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

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

- name: Pack NuGet packages
run: |
dotnet pack $SOLUTION --configuration $BUILD_CONFIG --no-build --output ./artifacts
dotnet pack $SOLUTION --configuration $BUILD_CONFIG --no-build --output ./artifacts -p:VersionProfile=${{ env.VERSION_PROFILE }}
echo "=== Packages created ==="
ls -la ./artifacts/

- name: Get tag for current commit
id: get_tag
# Check for tags when triggered by main branch push (with tag) or direct tag push
# Can't use github.ref_name because it's "main" when pushing branch+tag together
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
uses: olegtarasov/[email protected]

- name: Extract release notes from CHANGELOG.md
if: steps.get_tag.outputs.tag != ''
id: extract_notes
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
- name: Restore, Build, and Pack
run: |
dotnet restore *.sln
dotnet build *.sln --configuration Release --no-restore -p:ContinuousIntegrationBuild=true
dotnet pack *.sln --configuration Release --no-build --output ./artifacts -p:ContinuousIntegrationBuild=true
dotnet build *.sln --configuration Release --no-restore -p:ContinuousIntegrationBuild=true -p:GeneratePackageOnBuild=false -p:VersionProfile=release
dotnet pack *.sln --configuration Release --no-build --output ./artifacts -p:ContinuousIntegrationBuild=true -p:VersionProfile=release

- name: Publish to NuGet
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
21 changes: 18 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,24 @@

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

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

## [Unreleased]

## [1.0.0] - 2025-08-03

### Changed

- Massive simplification by using Datacute.IncrementalGeneratorExtensions
- Changed to use a builder style pattern for the pipeline Combines.
- Replaced Numerous Attribute "Include x" Properties with a single flags enum.
- Generate flags enum and attribute rather than including them in the package. (This results in more consistent package treatment as a source generator.)

### Added

- More docs

## [0.0.2-alpha] - 2025-07-12

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

[Unreleased]: https://github.com/datacute/SourceGeneratorContext/compare/0.0.1-alpha...develop
[0.0.1-alpha]: https://github.com/datacute/SourceGeneratorContext/releases/0.0.1-alpha
[Unreleased]: https://github.com/datacute/SourceGeneratorContext/compare/1.0.0...develop
[1.0.0]: https://github.com/datacute/SourceGeneratorContext/releases/tag/1.0.0
[0.0.2-alpha]: https://github.com/datacute/SourceGeneratorContext/releases/tag/0.0.2-alpha
[0.0.1-alpha]: https://github.com/datacute/SourceGeneratorContext/releases/tag/0.0.1-alpha
Loading