Skip to content

Commit 6bc0143

Browse files
committed
workflows: staging-release: add v4.2
Signed-off-by: Eduardo Silva <[email protected]>
1 parent d814153 commit 6bc0143

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.github/workflows/staging-release.yaml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ jobs:
842842
tag_name: v${{ inputs.version }}
843843
make_latest: false
844844

845-
- name: Release 4.1 and latest
845+
- name: Release 4.1 - not latest
846846
uses: softprops/action-gh-release@v2
847847
if: startsWith(inputs.version, '4.1')
848848
with:
@@ -853,6 +853,17 @@ jobs:
853853
tag_name: v${{ inputs.version }}
854854
make_latest: true
855855

856+
- name: Release 4.2 and latest
857+
uses: softprops/action-gh-release@v2
858+
if: startsWith(inputs.version, '4.2')
859+
with:
860+
body: "https://fluentbit.io/announcements/v${{ inputs.version }}/"
861+
draft: false
862+
generate_release_notes: true
863+
name: "Fluent Bit ${{ inputs.version }}"
864+
tag_name: v${{ inputs.version }}
865+
make_latest: true
866+
856867
staging-release-windows-checksums:
857868
name: Get Windows checksums for new release
858869
runs-on: ubuntu-22.04
@@ -969,13 +980,20 @@ jobs:
969980
token: ${{ secrets.GH_PA_TOKEN }}
970981
ref: '4.0'
971982

972-
- name: Release 4.1 and latest
983+
- name: Release 4.1 - not latest
973984
if: startsWith(inputs.version, '4.1')
974985
uses: actions/checkout@v5
975986
with:
976987
repository: fluent/fluent-bit-docs
977988
token: ${{ secrets.GH_PA_TOKEN }}
978989

990+
- name: Release 4.2 and latest
991+
if: startsWith(inputs.version, '4.2')
992+
uses: actions/checkout@v5
993+
with:
994+
repository: fluent/fluent-bit-docs
995+
token: ${{ secrets.GH_PA_TOKEN }}
996+
979997
- name: Ensure we have the script we need
980998
run: |
981999
if [[ ! -f update-release-version-docs.sh ]] ; then
@@ -1076,6 +1094,12 @@ jobs:
10761094
- name: Release 4.1
10771095
if: startsWith(inputs.version, '4.1')
10781096
uses: actions/checkout@v5
1097+
with:
1098+
ref: 4.1
1099+
1100+
- name: Release 4.2
1101+
if: startsWith(inputs.version, '4.2')
1102+
uses: actions/checkout@v5
10791103
with:
10801104
ref: master
10811105

0 commit comments

Comments
 (0)