Skip to content

Commit 558eb4b

Browse files
committed
workflows: Prepare to change upcoming 4.1 release
We still need to release 4.0 as a stable version. So, we still needed to use latest tag as a 4.0.x versions. Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent e0ab013 commit 558eb4b

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/staging-release.yaml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,9 @@ jobs:
502502
TAG: ${{ steps.get-tag.outputs.tag }}
503503

504504
staging-release-images-latest-tags:
505-
# Only update latest tags for 4.0 releases
505+
# NOTE: Before releasing 4.1, we need to change '4.' to '4.1'
506+
# Meanwhile, we need to release 4.0 series as stable releases.
507+
# Only update latest tags for 4. releases
506508
if: startsWith(github.event.inputs.version, '4.')
507509
name: Release latest Linux container images
508510
runs-on: ubuntu-latest
@@ -829,7 +831,7 @@ jobs:
829831
target_commitish: '3.2'
830832
make_latest: false
831833

832-
- name: Release 4.0 and latest
834+
- name: Release 4.0 - not latest
833835
uses: softprops/action-gh-release@v2
834836
if: startsWith(inputs.version, '4.0')
835837
with:
@@ -840,6 +842,17 @@ jobs:
840842
tag_name: v${{ inputs.version }}
841843
make_latest: true
842844

845+
- name: Release 4.1 and latest
846+
uses: softprops/action-gh-release@v2
847+
if: startsWith(inputs.version, '4.1')
848+
with:
849+
body: "https://fluentbit.io/announcements/v${{ inputs.version }}/"
850+
draft: false
851+
generate_release_notes: true
852+
name: "Fluent Bit ${{ inputs.version }}"
853+
tag_name: v${{ inputs.version }}
854+
make_latest: true
855+
843856
staging-release-windows-checksums:
844857
name: Get Windows checksums for new release
845858
runs-on: ubuntu-22.04
@@ -948,13 +961,20 @@ jobs:
948961
token: ${{ secrets.GH_PA_TOKEN }}
949962
ref: 3.2
950963

951-
- name: Release 4.0 and latest
964+
- name: Release 4.0 - not latest
952965
if: startsWith(inputs.version, '4.0')
953966
uses: actions/checkout@v4
954967
with:
955968
repository: fluent/fluent-bit-docs
956969
token: ${{ secrets.GH_PA_TOKEN }}
957970

971+
- name: Release 4.1 and latest
972+
if: startsWith(inputs.version, '4.1')
973+
uses: actions/checkout@v4
974+
with:
975+
repository: fluent/fluent-bit-docs
976+
token: ${{ secrets.GH_PA_TOKEN }}
977+
958978
- name: Ensure we have the script we need
959979
run: |
960980
if [[ ! -f update-release-version-docs.sh ]] ; then

0 commit comments

Comments
 (0)