From 34c91e5fe0cf964247cf1c4fe1ebbc7281e0b2f0 Mon Sep 17 00:00:00 2001
From: Larvan2 <78135608+Larvan2@users.noreply.github.com>
Date: Tue, 28 Mar 2023 16:40:45 +0000
Subject: [PATCH] chore: add release branch

---
 .github/workflows/build.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index dc43a10e..8c853ab0 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -268,6 +268,18 @@ jobs:
           generate_release_notes: true
           body_path: release.txt
 
+      - name: Git push assets to "release" branch
+        run: |
+          cd bin || exit 1
+          git init
+          git config --local user.name "github-actions[bot]"
+          git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
+          git checkout -b release
+          git add .
+          git commit -m "${{ env.BUILDTIME }}"
+          git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
+          git push -f -u origin release
+
   Upload-Release:
     permissions: write-all
     if: ${{ github.ref_type=='tag' }}