mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:55:33 +00:00
chore: update release ci
This commit is contained in:
parent
2c0721b182
commit
31c54896fb
108
.github/workflows/manual-release.yml
vendored
108
.github/workflows/manual-release.yml
vendored
@ -11,7 +11,61 @@ on:
|
|||||||
description: 'is feat'
|
description: 'is feat'
|
||||||
type: boolean
|
type: boolean
|
||||||
jobs:
|
jobs:
|
||||||
|
pre-publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: nocobase/nocobase
|
||||||
|
ssh-key: ${{ secrets.NOCOBASE_DEPLOY_KEY }}
|
||||||
|
persist-credentials: true
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Checkout pro-plugins
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: nocobase/pro-plugins
|
||||||
|
path: packages/pro-plugins
|
||||||
|
fetch-depth: 0
|
||||||
|
ssh-key: ${{ secrets.PRO_PLUGINS_DEPLOY_KEY }}
|
||||||
|
persist-credentials: true
|
||||||
|
- name: main -> next
|
||||||
|
run: |
|
||||||
|
git config --global user.email "actions@github.com"
|
||||||
|
git config --global user.name "GitHub Actions Bot"
|
||||||
|
git checkout main
|
||||||
|
git pull origin main
|
||||||
|
git checkout next
|
||||||
|
git merge main
|
||||||
|
git push origin next
|
||||||
|
- name: main -> next
|
||||||
|
run: |
|
||||||
|
cd ./packages/pro-plugins
|
||||||
|
git checkout main
|
||||||
|
git pull origin main
|
||||||
|
git checkout next
|
||||||
|
git merge main
|
||||||
|
git push origin next
|
||||||
|
- name: push pro plugins
|
||||||
|
continue-on-error: true
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
|
with:
|
||||||
|
ssh: true
|
||||||
|
branch: next
|
||||||
|
directory: packages/pro-plugins
|
||||||
|
repository: nocobase/pro-plugins
|
||||||
|
tags: true
|
||||||
|
atomic: true
|
||||||
|
- name: push nocobase
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
|
with:
|
||||||
|
branch: next
|
||||||
|
ssh: true
|
||||||
|
repository: nocobase/nocobase
|
||||||
|
tags: true
|
||||||
|
atomic: true
|
||||||
push-commit:
|
push-commit:
|
||||||
|
needs: pre-publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -61,3 +115,57 @@ jobs:
|
|||||||
repository: nocobase/nocobase
|
repository: nocobase/nocobase
|
||||||
tags: true
|
tags: true
|
||||||
atomic: true
|
atomic: true
|
||||||
|
post-publish:
|
||||||
|
needs: push-commit
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: nocobase/nocobase
|
||||||
|
ssh-key: ${{ secrets.NOCOBASE_DEPLOY_KEY }}
|
||||||
|
persist-credentials: true
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Checkout pro-plugins
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: nocobase/pro-plugins
|
||||||
|
path: packages/pro-plugins
|
||||||
|
fetch-depth: 0
|
||||||
|
ssh-key: ${{ secrets.PRO_PLUGINS_DEPLOY_KEY }}
|
||||||
|
persist-credentials: true
|
||||||
|
- name: main -> next
|
||||||
|
run: |
|
||||||
|
git config --global user.email "actions@github.com"
|
||||||
|
git config --global user.name "GitHub Actions Bot"
|
||||||
|
git checkout main
|
||||||
|
git pull origin main
|
||||||
|
git checkout next
|
||||||
|
git merge -X ours main --no-edit
|
||||||
|
git push origin next
|
||||||
|
- name: main -> next
|
||||||
|
run: |
|
||||||
|
cd ./packages/pro-plugins
|
||||||
|
git checkout main
|
||||||
|
git pull origin main
|
||||||
|
git checkout next
|
||||||
|
git merge -X ours main --no-edit
|
||||||
|
git push origin next
|
||||||
|
- name: push pro plugins
|
||||||
|
continue-on-error: true
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
|
with:
|
||||||
|
ssh: true
|
||||||
|
branch: next
|
||||||
|
directory: packages/pro-plugins
|
||||||
|
repository: nocobase/pro-plugins
|
||||||
|
tags: true
|
||||||
|
atomic: true
|
||||||
|
- name: push nocobase
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
|
with:
|
||||||
|
branch: next
|
||||||
|
ssh: true
|
||||||
|
repository: nocobase/nocobase
|
||||||
|
tags: true
|
||||||
|
atomic: true
|
Loading…
Reference in New Issue
Block a user