Skip to content

Commit

Permalink
create release before build
Browse files Browse the repository at this point in the history
  • Loading branch information
webfinesse committed Oct 15, 2024
1 parent b519d69 commit 73a8768
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/release-layer-collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ permissions:
contents: write

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Create Release
run: gh release create ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-layer:
runs-on: ubuntu-latest
strategy:
Expand All @@ -33,7 +40,6 @@ jobs:
path: ${{ github.workspace }}/collector/build/opentelemetry-collector-layer-${{ matrix.architecture }}.zip
- name: Add Binary to Release
run: |
gh release create ${{github.ref_name}}
gh release upload ${{github.ref_name}} ${{ github.workspace }}/collector/build/opentelemetry-collector-layer-${{ matrix.architecture }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release-layer-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ permissions:
contents: write

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Create Release
run: gh release create ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-layer:
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -46,7 +53,6 @@ jobs:

- name: Add Binary to Release
run: |
gh release create ${{github.ref_name}}
gh release upload ${{github.ref_name}} java/layer-wrapper/build/distributions/opentelemetry-javawrapper-layer.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release-layer-nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ permissions:
contents: write

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Create Release
run: gh release create ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-layer:
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -47,7 +54,6 @@ jobs:

- name: Add Binary to Release
run: |
gh release create ${{github.ref_name}}
gh release upload ${{github.ref_name}} nodejs/packages/layer/build/opentelemetry-nodejs-layer.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release-layer-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ permissions:
contents: write

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Create Release
run: gh release create ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-layer:
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -54,7 +61,6 @@ jobs:

- name: Add Binary to Release
run: |
gh release create ${{github.ref_name}}
gh release upload ${{github.ref_name}} python/src/build/opentelemetry-python-layer.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release-layer-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ permissions:
contents: write

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Create Release
run: gh release create ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-layer:
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -46,7 +53,6 @@ jobs:

- name: Add Binary to Release
run: |
gh release create ${{github.ref_name}}
gh release upload ${{github.ref_name}} ruby/src/build/opentelemetry-ruby-layer.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 73a8768

Please sign in to comment.