diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4dd7fcac..8fb525f3 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