Skip to content

Commit 9789f19

Browse files
Update release.yml
1 parent 3fd02e1 commit 9789f19

File tree

1 file changed

+37
-18
lines changed

1 file changed

+37
-18
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -56,25 +56,44 @@ jobs:
5656
name: bin-${{ matrix.base-image }}
5757
path: bin/tracer-home
5858

59-
create-release:
60-
name: Create GH release
59+
pack:
60+
needs: build
61+
6162
runs-on: ubuntu-20.04
62-
needs: [ build, container-build ]
63-
permissions:
64-
contents: write
65-
timeout-minutes: 10
6663
steps:
6764
- uses: actions/[email protected]
68-
- uses: actions/[email protected]
65+
- uses: nuget/[email protected]
66+
67+
- name: Download Windows Artifacts from build job
68+
uses: actions/[email protected]
69+
with:
70+
name: bin-windows-2022
71+
path: nuget/bin-windows
72+
73+
- name: Download Ubuntu Artifacts from build job
74+
uses: actions/[email protected]
75+
with:
76+
name: bin-ubuntu-20.04
77+
path: nuget/bin-linux-glibc
78+
79+
- name: Download Alpine Artifacts from build job
80+
uses: actions/[email protected]
81+
with:
82+
name: bin-alpine
83+
path: nuget/bin-linux-musl
84+
85+
- name: Download Mac-OS Artifacts from build job
86+
uses: actions/[email protected]
87+
with:
88+
name: bin-macos-11
89+
path: nuget/bin-macos
90+
91+
- name: Build NuGet package
92+
run: nuget pack OpenTelemetry.AutoInstrumentation.nuspec -Properties NoWarn=NU5100,NU5123,NU5128
93+
working-directory: nuget
94+
95+
- name: Upload Nuget
96+
uses: actions/[email protected]
6997
with:
70-
path: .
71-
- name: Install zip
72-
uses: montudor/[email protected]
73-
- run: cd bin-alpine ; zip -qq -r ../opentelemetry-dotnet-instrumentation-linux-musl.zip . * ; cd ..
74-
- run: cd bin-ubuntu-20.04 ; zip -qq -r ../opentelemetry-dotnet-instrumentation-linux-glibc.zip . * ; cd ..
75-
- run: cd bin-windows-2022 ; zip -qq -r ../opentelemetry-dotnet-instrumentation-windows.zip . * ; cd ..
76-
- run: cd bin-macos-11 ; zip -qq -r ../opentelemetry-dotnet-instrumentation-macos.zip . * ; cd ..
77-
- name: Create Release
78-
run: gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --verify-tag --draft ./*.zip ./otel-dotnet-auto-install.sh ./OpenTelemetry.DotNet.Auto.psm1
79-
env:
80-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98+
name: OpenTelemetry.AutoInstrumentation.Nuget
99+
path: nuget/*.nupkg

0 commit comments

Comments
 (0)