From 36702c87d124a47e8610fbfb243053b65098179c Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Tue, 4 Aug 2026 15:00:00 +0900 Subject: [PATCH] github: workflows: Update release workflow for 5.1 development cycle Signed-off-by: Hiroshi Hatake --- .github/workflows/staging-release.yaml | 34 +++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/.github/workflows/staging-release.yaml b/.github/workflows/staging-release.yaml index a789c0dbb9c..a1e1c202329 100644 --- a/.github/workflows/staging-release.yaml +++ b/.github/workflows/staging-release.yaml @@ -595,8 +595,8 @@ jobs: TAG: ${{ steps.get-tag.outputs.tag }} staging-release-images-latest-tags: - # Only update latest tags for 5.0 releases - if: startsWith(github.event.inputs.version, '5.0') + # Only update latest tags for 5.1 releases + if: startsWith(github.event.inputs.version, '5.1') name: Release latest Linux container images runs-on: ubuntu-latest needs: @@ -960,9 +960,21 @@ jobs: target_commitish: '4.2' make_latest: false - - name: Release 5.0 and latest + - name: Release 5.0 - not latest uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2 if: startsWith(inputs.version, '5.0') + with: + body: "https://fluentbit.io/announcements/v${{ inputs.version }}/" + draft: false + generate_release_notes: true + name: "Fluent Bit ${{ inputs.version }}" + tag_name: v${{ inputs.version }} + target_commitish: '5.0' + make_latest: false + + - name: Release 5.1 and latest + uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2 + if: startsWith(inputs.version, '5.1') with: body: "https://fluentbit.io/announcements/v${{ inputs.version }}/" draft: false @@ -1103,9 +1115,17 @@ jobs: token: ${{ secrets.GH_PA_TOKEN }} ref: '4.2' - - name: Release 5.0 and latest + - name: Release 5.0 - not latest if: startsWith(inputs.version, '5.0') uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + repository: fluent/fluent-bit-docs + token: ${{ secrets.GH_PA_TOKEN }} + ref: '5.0' + + - name: Release 5.1 and latest + if: startsWith(inputs.version, '5.1') + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: fluent/fluent-bit-docs token: ${{ secrets.GH_PA_TOKEN }} @@ -1223,6 +1243,12 @@ jobs: - name: Release 5.0 if: startsWith(inputs.version, '5.0') uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: '5.0' + + - name: Release 5.1 + if: startsWith(inputs.version, '5.1') + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: master