Skip to content

Commit 4ec8b3a

Browse files
committed
Simplify the release flow for the tracing libraries
1 parent a3c886e commit 4ec8b3a

File tree

3 files changed

+64
-56
lines changed

3 files changed

+64
-56
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release OpenTelemetry tracing library
2+
3+
on:
4+
push:
5+
tags:
6+
- v*-tracing-opentelemetry
7+
8+
jobs:
9+
release-tracing-lib-opentelemetry:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
submodules: 'true'
16+
- uses: actions/setup-dotnet@v3
17+
with:
18+
dotnet-version: '6.0'
19+
- run: dotnet build -c Release
20+
working-directory: Pyroscope/Pyroscope.Tracing/Pyroscope.Tracing.OpenTelemetry
21+
- name: Publish the package to nuget.org
22+
run: dotnet nuget push bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
23+
working-directory: Pyroscope/Pyroscope.Tracing/Pyroscope.Tracing.OpenTelemetry
24+
env:
25+
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
26+
- name: Release
27+
uses: softprops/action-gh-release@v1
28+
if: startsWith(github.ref, 'refs/tags/')
29+
with:
30+
files: |
31+
./Pyroscope/Pyroscope.Tracing/Pyroscope.Tracing.OpenTelemetry/bin/Release/net6.0/Pyroscope.Tracing.OpenTelemetry.dll
32+
./Pyroscope/Pyroscope.Tracing/Pyroscope.Tracing.OpenTelemetry/bin/Release/Pyroscope.Tracing.OpenTelemetry*.nupkg
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release OpenTracing tracing library
2+
3+
on:
4+
push:
5+
tags:
6+
- v*-tracing-opentracing
7+
8+
jobs:
9+
release-tracing-lib-opentracing:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
submodules: 'true'
16+
- uses: actions/setup-dotnet@v3
17+
with:
18+
dotnet-version: '6.0'
19+
- run: dotnet build -c Release
20+
working-directory: Pyroscope/Pyroscope.Tracing/Pyroscope.Tracing.OpenTracing
21+
- name: Publish the package to nuget.org
22+
run: dotnet nuget push bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
23+
working-directory: Pyroscope/Pyroscope.Tracing/Pyroscope.Tracing.OpenTracing
24+
env:
25+
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
26+
- name: Release
27+
uses: softprops/action-gh-release@v1
28+
if: startsWith(github.ref, 'refs/tags/')
29+
with:
30+
files: |
31+
./Pyroscope/Pyroscope.Tracing/Pyroscope.Tracing.OpenTracing/bin/Release/net6.0/Pyroscope.Tracing.OpenTracing.dll
32+
./Pyroscope/Pyroscope.Tracing/Pyroscope.Tracing.OpenTracing/bin/Release/Pyroscope.Tracing.OpenTracing*.nupkg

.github/workflows/tag_tracing_packages.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)