Skip to content

Commit 73a8768

Browse files
committed
create release before build
1 parent b519d69 commit 73a8768

File tree

5 files changed

+35
-5
lines changed

5 files changed

+35
-5
lines changed

.github/workflows/release-layer-collector.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ permissions:
1111
contents: write
1212

1313
jobs:
14+
create-release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Create Release
18+
run: gh release create ${{ github.ref_name }}
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1421
build-layer:
1522
runs-on: ubuntu-latest
1623
strategy:
@@ -33,7 +40,6 @@ jobs:
3340
path: ${{ github.workspace }}/collector/build/opentelemetry-collector-layer-${{ matrix.architecture }}.zip
3441
- name: Add Binary to Release
3542
run: |
36-
gh release create ${{github.ref_name}}
3743
gh release upload ${{github.ref_name}} ${{ github.workspace }}/collector/build/opentelemetry-collector-layer-${{ matrix.architecture }}.zip
3844
env:
3945
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-layer-java.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ permissions:
1111
contents: write
1212

1313
jobs:
14+
create-release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Create Release
18+
run: gh release create ${{ github.ref_name }}
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1421
build-layer:
1522
runs-on: ubuntu-latest
1623
outputs:
@@ -46,7 +53,6 @@ jobs:
4653

4754
- name: Add Binary to Release
4855
run: |
49-
gh release create ${{github.ref_name}}
5056
gh release upload ${{github.ref_name}} java/layer-wrapper/build/distributions/opentelemetry-javawrapper-layer.zip
5157
env:
5258
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-layer-nodejs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ permissions:
1111
contents: write
1212

1313
jobs:
14+
create-release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Create Release
18+
run: gh release create ${{ github.ref_name }}
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1421
build-layer:
1522
runs-on: ubuntu-latest
1623
outputs:
@@ -47,7 +54,6 @@ jobs:
4754

4855
- name: Add Binary to Release
4956
run: |
50-
gh release create ${{github.ref_name}}
5157
gh release upload ${{github.ref_name}} nodejs/packages/layer/build/opentelemetry-nodejs-layer.zip
5258
env:
5359
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-layer-python.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ permissions:
1111
contents: write
1212

1313
jobs:
14+
create-release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Create Release
18+
run: gh release create ${{ github.ref_name }}
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1421
build-layer:
1522
runs-on: ubuntu-latest
1623
outputs:
@@ -54,7 +61,6 @@ jobs:
5461

5562
- name: Add Binary to Release
5663
run: |
57-
gh release create ${{github.ref_name}}
5864
gh release upload ${{github.ref_name}} python/src/build/opentelemetry-python-layer.zip
5965
env:
6066
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-layer-ruby.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ permissions:
1111
contents: write
1212

1313
jobs:
14+
create-release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Create Release
18+
run: gh release create ${{ github.ref_name }}
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1421
build-layer:
1522
runs-on: ubuntu-latest
1623
outputs:
@@ -46,7 +53,6 @@ jobs:
4653

4754
- name: Add Binary to Release
4855
run: |
49-
gh release create ${{github.ref_name}}
5056
gh release upload ${{github.ref_name}} ruby/src/build/opentelemetry-ruby-layer.zip
5157
env:
5258
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)