Skip to content
Closed
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
55 changes: 37 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,44 @@ jobs:
name: bin-${{ matrix.base-image }}
path: bin/tracer-home

create-release:
name: Create GH release
pack:
needs: build

runs-on: ubuntu-20.04
needs: [ build, container-build ]
permissions:
contents: write
timeout-minutes: 10
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- uses: nuget/[email protected]

- name: Download Windows Artifacts from build job
uses: actions/[email protected]
with:
name: bin-windows-2022
path: nuget/bin-windows

- name: Download Ubuntu Artifacts from build job
uses: actions/[email protected]
with:
name: bin-ubuntu-20.04
path: nuget/bin-linux-glibc

- name: Download Alpine Artifacts from build job
uses: actions/[email protected]
with:
name: bin-alpine
path: nuget/bin-linux-musl

- name: Download Mac-OS Artifacts from build job
uses: actions/[email protected]
with:
name: bin-macos-11
path: nuget/bin-macos

- name: Build NuGet package
run: nuget pack OpenTelemetry.AutoInstrumentation.nuspec -Properties NoWarn=NU5100,NU5123,NU5128
working-directory: nuget

- name: Upload Nuget
uses: actions/[email protected]
with:
path: .
- name: Install zip
uses: montudor/[email protected]
- run: cd bin-alpine ; zip -qq -r ../opentelemetry-dotnet-instrumentation-linux-musl.zip . * ; cd ..
- run: cd bin-ubuntu-20.04 ; zip -qq -r ../opentelemetry-dotnet-instrumentation-linux-glibc.zip . * ; cd ..
- run: cd bin-windows-2022 ; zip -qq -r ../opentelemetry-dotnet-instrumentation-windows.zip . * ; cd ..
- run: cd bin-macos-11 ; zip -qq -r ../opentelemetry-dotnet-instrumentation-macos.zip . * ; cd ..
- name: Create Release
run: gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --verify-tag --draft ./*.zip ./otel-dotnet-auto-install.sh ./OpenTelemetry.DotNet.Auto.psm1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: OpenTelemetry.AutoInstrumentation.Nuget
path: nuget/*.nupkg
2 changes: 1 addition & 1 deletion nuget/OpenTelemetry.AutoInstrumentation.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<file src="bin-linux-glibc/integrations.json" target="integrations.json" />
<file src="bin-linux-glibc/LICENSE" target="LICENSE" />
<file src="bin-linux-glibc/linux-x64/**/*.*" target="linux-x64" />
<file src="bin-linux-musl/linux-musl-x64/**/*.*" target="linux-musl-x64" />
<file src="bin-linux-musl/linux-x64/**/*.*" target="linux-musl-x64" />
<file src="bin-windows/netfx/**/*.*" target="netfx" />
<file src="bin-windows/win-x64/**/*.*" target="win-x64" />
<file src="bin-windows/win-x86/**/*.*" target="win-x86" />
Expand Down
2 changes: 1 addition & 1 deletion test/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<PackageVersion Include="Microsoft.AspNetCore.Hosting" Version="2.2.7" />
<PackageVersion Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
<PackageVersion Include="Microsoft.Data.SqlClient" Version="5.1.0" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.12" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.5" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="7.0.0" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="7.0.0" />
Expand Down