Skip to content

Commit

Permalink
fix: Fluss.Regen not usable as source generator
Browse files Browse the repository at this point in the history
  • Loading branch information
mvarendorff2 committed Oct 2, 2024
1 parent d1a1c0a commit c03781e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,20 @@ jobs:
9.x
- name: Strip v from tag to determine version
run: echo "VERSION=${VERSION/v/}" >> $GITHUB_ENV
# dotnet pack says it already builds the project but it for some reason does not properly generate
# the analyzers directory when skipping an explicit build. It's unclear to me what the difference is.
- name: Build
run: dotnet build --configuration Release /p:Version=${VERSION}
working-directory: src/${{ matrix.package }}
- name: Package
run: dotnet pack --configuration Release /p:Version=${VERSION}
run: dotnet pack --no-build --configuration Release /p:Version=${VERSION}
working-directory: src/${{ matrix.package }}
- name: DEBUG - Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.package }}.nupkg
path: src/${{ matrix.package }}/bin/Release
retention-days: 1
- name: Publish
run: dotnet nuget push bin/Release/${{ matrix.package }}.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
working-directory: src/${{ matrix.package }}
Expand Down
4 changes: 4 additions & 0 deletions src/Fluss.Regen/Fluss.Regen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<RepositoryType>git</RepositoryType>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

<NoWarn>$(NoWarn);NU5128</NoWarn>
<IncludeSymbols>false</IncludeSymbols>
<IncludeBuildOutput>false</IncludeBuildOutput>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit c03781e

Please sign in to comment.