mirror of
https://github.com/MetaCubeX/meta-rules-dat.git
synced 2024-12-29 07:34:17 +08:00
Git push assets to release branch
This commit is contained in:
parent
bce5ab64eb
commit
c655693b73
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user