From c655693b730158949cf50e2260f71daf301c9b4e Mon Sep 17 00:00:00 2001 From: loyalsoldier Date: Sun, 1 Mar 2020 16:15:45 +0800 Subject: [PATCH] Git push assets to 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 4dd7fca..8fb525f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -133,3 +133,15 @@ jobs: ./publish/* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Git push assets to "release" branch + run: | + cd publish + 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 . + git commit -m "${{ env.RELEASE_NAME }}" + git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}" + git push -u origin release