From c8ca8449282c3e9ffce356ad9a8f18a0bf0c6bc1 Mon Sep 17 00:00:00 2001 From: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Thu, 12 Mar 2020 23:02:56 +0800 Subject: [PATCH] Push assets to release branch due to GitHub Actions error --- .github/workflows/build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ffc7f93..a22cedf4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,6 +37,17 @@ jobs: run: | sha256sum dlc.dat > dlc.dat.sha256sum + - name: Git push assets to "release" branch + run: | + git init + git config --local user.name "${{ github.actor }}" + git config --local user.email "${{ github.actor }}@users.noreply.github.com" + git checkout -b release + git add dlc.dat dlc.dat.sha256sum + git commit -m "${{ env.RELEASE_NAME }}" + git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}" + git push -f -u origin release + - name: Create a release id: create_release uses: actions/create-release@v1