Skip to content

Commit f728cbf

Browse files
committed
Build issues
1 parent c02a5b9 commit f728cbf

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ jobs:
1717
dotnet-version: 9.0.x
1818
- name: Setup NuGet
1919
uses: nuget/setup-nuget@v2
20+
with:
21+
nuget-api-key: ${{secrets.NUGET_KEY}}
2022
- name: Get Build Version
2123
run: |
2224
echo "BUILD_VERSION=${{ format('{0}.{1}', env.BUILD_VER, github.run_number ) }}" >> $GITHUB_ENV
2325
- name: Build
24-
run: dotnet pack $SOLUTION --configuration Release -p:Version=$BUILD_VERSION -p:PackageVersion=$BUILD_VERSION -p:GeneratePackageOnBuild=false
26+
run: dotnet pack $SOLUTION --configuration Release -p:Version=$BUILD_VERSION -p:PackageVersion=$BUILD_VERSION -p:GeneratePackageOnBuild=false -p:NuGetVersion=$BUILD_VERSION
2527
- name: Publish
26-
run: nuget push **/*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_KEY}}
28+
run: nuget push **/*.nupkg

GoLive.Generator.ApiClientGenerator/GoLive.Generator.ApiClientGenerator.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1515
<GenerateRepositoryUrlAttribute>true</GenerateRepositoryUrlAttribute>
1616
<PackOnBuild>true</PackOnBuild>
17+
<IsPackable>true</IsPackable>
1718
<PackFolder>analyzers\cs</PackFolder>
1819
<IsRoslynComponent>true</IsRoslynComponent>
1920
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>

0 commit comments

Comments
 (0)