From 5f8d0db1eb5a8fcba4e0af2aad019149efe09be1 Mon Sep 17 00:00:00 2001 From: ashish Date: Sat, 26 Feb 2022 13:05:43 +0530 Subject: [PATCH] Add release event in workflow Signed-off-by: ashish --- .github/workflows/release-binaries.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml index 5dfb6e8..8b7802b 100644 --- a/.github/workflows/release-binaries.yml +++ b/.github/workflows/release-binaries.yml @@ -1,5 +1,8 @@ name: Build/Release binaries + on: + release: + types: [published] pull_request: branches: - "*" @@ -31,8 +34,8 @@ jobs: assets+=("-a" "$asset") done tag_name="${GITHUB_REF##*/}" - hub release edit "${assets[@]}" -m "" "stable-$tag_name" + hub release edit "${assets[@]}" -m "" "$tag_name" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + \ No newline at end of file