Skip to content

Commit

Permalink
Fix publish-packages workflow (#4678)
Browse files Browse the repository at this point in the history
  • Loading branch information
utpilla authored Jul 21, 2023
1 parent 0c54d1a commit 1d3bb4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-packages-1.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
ref: ${{ github.ref || 'main' }}

- name: Install dependencies
run: dotnet restore
run: dotnet restore OpenTelemetry.proj

- name: dotnet build
run: dotnet build --configuration Release --no-restore -p:Deterministic=true -p:BuildNumber=${{ github.run_number }}
run: dotnet build OpenTelemetry.proj --configuration Release --no-restore -p:Deterministic=true -p:BuildNumber=${{ github.run_number }}

- name: dotnet pack
run: dotnet pack OpenTelemetry.proj --configuration Release --no-build
Expand Down
5 changes: 5 additions & 0 deletions OpenTelemetry.proj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
<SolutionProjects Remove="src\OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc\OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc.csproj" />
<PackProjects Remove="src\OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc\OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc.csproj" />

<!-- Skip building these projects when publish packages workflow runs as these projects need to dependupon instrumentation libraries taking a project reference
instead of package reference on API/SDK-->
<SolutionProjects Remove="examples\**\*.csproj" Condition="'$(RunningDotNetPack)' == 'true'"/>
<SolutionProjects Remove="test\Benchmarks\Benchmarks.csproj" Condition="'$(RunningDotNetPack)' == 'true'"/>

</ItemGroup>

<Target Name="Build">
Expand Down

0 comments on commit 1d3bb4b

Please sign in to comment.