2023-12-13 09:06:59 +00:00
|
|
|
name: manual-release
|
2024-02-08 03:35:59 +00:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2024-05-09 07:42:08 +00:00
|
|
|
on:
|
2023-12-13 09:06:59 +00:00
|
|
|
workflow_dispatch:
|
2024-08-25 14:07:44 +00:00
|
|
|
inputs:
|
|
|
|
is_feat:
|
|
|
|
description: 'is feat'
|
|
|
|
type: boolean
|
2024-08-06 09:52:23 +00:00
|
|
|
|
2023-12-13 09:06:59 +00:00
|
|
|
jobs:
|
2024-07-16 08:04:28 +00:00
|
|
|
push-commit:
|
2024-07-16 07:50:21 +00:00
|
|
|
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
|
2024-07-16 08:04:28 +00:00
|
|
|
- name: main -> next(nocobase)
|
2024-07-16 07:50:21 +00:00
|
|
|
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
|
2024-07-16 08:04:28 +00:00
|
|
|
- name: main -> next(pro-plugins)
|
2024-07-16 07:50:21 +00:00
|
|
|
run: |
|
|
|
|
cd ./packages/pro-plugins
|
|
|
|
git checkout main
|
|
|
|
git pull origin main
|
|
|
|
git checkout next
|
|
|
|
git merge main
|
|
|
|
git push origin next
|
2024-07-16 08:04:28 +00:00
|
|
|
- name: push pro plugins(next)
|
2024-07-16 07:50:21 +00:00
|
|
|
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
|
2024-07-16 08:04:28 +00:00
|
|
|
- name: push nocobase(next)
|
2024-07-16 07:50:21 +00:00
|
|
|
uses: ad-m/github-push-action@master
|
|
|
|
with:
|
|
|
|
branch: next
|
|
|
|
ssh: true
|
|
|
|
repository: nocobase/nocobase
|
|
|
|
tags: true
|
|
|
|
atomic: true
|
2024-05-09 07:42:08 +00:00
|
|
|
- name: Set Node.js 18
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18
|
2024-05-09 15:12:42 +00:00
|
|
|
- name: Install Lerna
|
|
|
|
run: npm install -g lerna@4 auto-changelog@2
|
2024-05-09 07:42:08 +00:00
|
|
|
- name: Run release.sh
|
|
|
|
run: |
|
2024-07-16 10:58:20 +00:00
|
|
|
cd ./packages/pro-plugins
|
|
|
|
git checkout main
|
|
|
|
cd ./../..
|
2024-07-16 08:04:28 +00:00
|
|
|
git checkout main
|
2024-05-09 07:42:08 +00:00
|
|
|
git config --global user.email "actions@github.com"
|
|
|
|
git config --global user.name "GitHub Actions Bot"
|
|
|
|
echo "packages/pro-plugins/" >> .git/info/exclude
|
2024-06-12 03:37:23 +00:00
|
|
|
bash release.sh $IS_FEAT
|
|
|
|
env:
|
2024-08-25 14:07:44 +00:00
|
|
|
IS_FEAT: ${{ inputs.is_feat && '--is-feat' || '' }}
|
2024-05-09 07:42:08 +00:00
|
|
|
- name: push pro plugins
|
2024-05-09 15:12:42 +00:00
|
|
|
continue-on-error: true
|
2024-05-09 07:42:08 +00:00
|
|
|
uses: ad-m/github-push-action@master
|
|
|
|
with:
|
|
|
|
ssh: true
|
|
|
|
branch: main
|
|
|
|
directory: packages/pro-plugins
|
|
|
|
repository: nocobase/pro-plugins
|
|
|
|
tags: true
|
|
|
|
atomic: true
|
2024-05-09 15:12:42 +00:00
|
|
|
- name: push nocobase
|
2024-05-09 07:42:08 +00:00
|
|
|
uses: ad-m/github-push-action@master
|
|
|
|
with:
|
2024-05-09 15:12:42 +00:00
|
|
|
branch: main
|
|
|
|
ssh: true
|
|
|
|
repository: nocobase/nocobase
|
2024-05-09 07:42:08 +00:00
|
|
|
tags: true
|
|
|
|
atomic: true
|
2024-07-16 07:50:21 +00:00
|
|
|
- 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
|