From 6fc7f54e59fcb624e4ce37cad8434209a4531157 Mon Sep 17 00:00:00 2001 From: Stephen Lang Date: Thu, 6 Nov 2025 12:10:00 +0000 Subject: [PATCH] ci: automatically create github release on tag --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..03fa9a1e6 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Release + +on: + push: + tags: + # N.B. These workflows also trigger on this tag pattern: + # - publish_dockerhub_main.yml + # - publish_dockerhub_k8s_cache_main.yml + - "v*.*.*" + +# https://docs.zizmor.sh/audits/#excessive-permissions +permissions: {} + +jobs: + release: + name: Release + runs-on: ubuntu-latest + permissions: + contents: write # https://github.com/softprops/action-gh-release#permissions + steps: + - name: Create GitHub release + uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + repository: open-telemetry/opentelemetry-ebpf-instrumentation + generate_release_notes: true