mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-11-30 03:08:31 +08:00
chore: update release ci
This commit is contained in:
parent
bef2a3ffe1
commit
393b6bb27e
49
.github/workflows/manual-release.yml
vendored
49
.github/workflows/manual-release.yml
vendored
@ -11,7 +11,7 @@ on:
|
|||||||
description: 'is feat'
|
description: 'is feat'
|
||||||
type: boolean
|
type: boolean
|
||||||
jobs:
|
jobs:
|
||||||
pre-publish:
|
push-commit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -29,7 +29,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ssh-key: ${{ secrets.PRO_PLUGINS_DEPLOY_KEY }}
|
ssh-key: ${{ secrets.PRO_PLUGINS_DEPLOY_KEY }}
|
||||||
persist-credentials: true
|
persist-credentials: true
|
||||||
- name: main -> next
|
- name: main -> next(nocobase)
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "actions@github.com"
|
git config --global user.email "actions@github.com"
|
||||||
git config --global user.name "GitHub Actions Bot"
|
git config --global user.name "GitHub Actions Bot"
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
git checkout next
|
git checkout next
|
||||||
git merge main
|
git merge main
|
||||||
git push origin next
|
git push origin next
|
||||||
- name: main -> next
|
- name: main -> next(pro-plugins)
|
||||||
run: |
|
run: |
|
||||||
cd ./packages/pro-plugins
|
cd ./packages/pro-plugins
|
||||||
git checkout main
|
git checkout main
|
||||||
@ -46,7 +46,7 @@ jobs:
|
|||||||
git checkout next
|
git checkout next
|
||||||
git merge main
|
git merge main
|
||||||
git push origin next
|
git push origin next
|
||||||
- name: push pro plugins
|
- name: push pro plugins(next)
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
@ -56,7 +56,7 @@ jobs:
|
|||||||
repository: nocobase/pro-plugins
|
repository: nocobase/pro-plugins
|
||||||
tags: true
|
tags: true
|
||||||
atomic: true
|
atomic: true
|
||||||
- name: push nocobase
|
- name: push nocobase(next)
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
branch: next
|
branch: next
|
||||||
@ -64,25 +64,6 @@ jobs:
|
|||||||
repository: nocobase/nocobase
|
repository: nocobase/nocobase
|
||||||
tags: true
|
tags: true
|
||||||
atomic: true
|
atomic: true
|
||||||
push-commit:
|
|
||||||
needs: 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: Set Node.js 18
|
- name: Set Node.js 18
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
@ -91,6 +72,7 @@ jobs:
|
|||||||
run: npm install -g lerna@4 auto-changelog@2
|
run: npm install -g lerna@4 auto-changelog@2
|
||||||
- name: Run release.sh
|
- name: Run release.sh
|
||||||
run: |
|
run: |
|
||||||
|
git checkout main
|
||||||
git config --global user.email "actions@github.com"
|
git config --global user.email "actions@github.com"
|
||||||
git config --global user.name "GitHub Actions Bot"
|
git config --global user.name "GitHub Actions Bot"
|
||||||
echo "packages/pro-plugins/" >> .git/info/exclude
|
echo "packages/pro-plugins/" >> .git/info/exclude
|
||||||
@ -115,25 +97,6 @@ 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
|
- name: main -> next
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "actions@github.com"
|
git config --global user.email "actions@github.com"
|
||||||
|
Loading…
Reference in New Issue
Block a user