Skip to content

Commit fb63425

Browse files
Patrick Stephensedsiper
authored andcommitted
workflows: automatically create release during the release process
Signed-off-by: Patrick Stephens <[email protected]>
1 parent 7f40367 commit fb63425

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

.github/workflows/staging-release.yaml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ jobs:
430430
environment: release
431431
needs:
432432
- staging-release-packages-server
433-
- staging-release-images
434433
steps:
435434
- name: Checkout code
436435
uses: actions/checkout@v3
@@ -467,3 +466,34 @@ jobs:
467466
shell: bash
468467
env:
469468
IMAGE_TAG: ${{ github.event.inputs.version }}
469+
470+
staging-release-create-release:
471+
name: Create the Github Release once packages and containers are up
472+
needs:
473+
- staging-release-images
474+
- staging-release-packages-server
475+
permissions:
476+
contents: write
477+
environment: release
478+
runs-on: ubuntu-latest
479+
steps:
480+
- name: Release 1.9 - not latest
481+
uses: softprops/action-gh-release@v1
482+
if: startsWith(inputs.version, '1.9')
483+
with:
484+
body: "https://fluentbit.io/announcements/v${{ inputs.version }}/"
485+
draft: false
486+
generate_release_notes: false
487+
name: "Fluent Bit ${{ inputs.version }}"
488+
tag_name: v${{ inputs.version }}
489+
target_commitish: '1.9'
490+
491+
- name: Release 2.0 and latest
492+
uses: softprops/action-gh-release@v1
493+
if: startsWith(inputs.version, '2.0')
494+
with:
495+
body: "https://fluentbit.io/announcements/v${{ inputs.version }}/"
496+
draft: false
497+
generate_release_notes: false
498+
name: "Fluent Bit ${{ inputs.version }}"
499+
tag_name: v${{ inputs.version }}

0 commit comments

Comments
 (0)