Release specifications

Take the demand for issuance of GH-1309 as an example

It is recommended to use the official development tool--isx-cli github address: https://github.com/isxcode/isx-cli

1. Backup code

Forcibly push the required branch code in the isxcode organization to your own warehouse for backup to prevent code rollback.

# 更新组织代码
isx git fetch upstream
# 切换到需求分支
isx checkout 1309
# 更新需求分支代码
isx pull
# 强行推到自己的仓库
isx push -f

2. Merge open source code conflicts

cd spark-yun
git rebase upstream/main
git rebase --continue

3. Merge closed source code conflicts

cd vip
git rebase upstream/main
git rebase --continue

4. Check the sql script file name specification and check whether there are any omissions in the multi-data source script

V${sql_index}__GH-${issue_number}.sql

resources/db/migration/h2/V22__GH-1309.sql
resources/db/migration/mysql/V22__GH-1309.sql
resources/db/migration/postgres/V22__GH-1309.sql

5. Whether the local test can be packaged normally

isx package

6. Use local docker to start the data source and test multiple databases

Modify the configuration file application-local.yml

H2

org.h2.Driver jdbc:h2:file:~/.zhiqingyun/h2/data;AUTO_SERVER=TRUE

# 备份本地数据
isx backup bak_20251030

MySQL

driver-class-name:com.MySQL.cj.JDBC.Driver url:jdbc:mysql://localhost:30306/isxcode_db

docker run \
  --name ispong-mysql \
  --privileged=true \
  -d \
  -p 30306:3306 \
  -e MYSQL_ROOT_PASSWORD=root123 \
  -e MYSQL_DATABASE=isxcode_db \
  mysql:8.0

PostgreSQL

driver-class-name:org.PostgreSQL.Driver url:jdbc:postgresql://localhost:54302/isxcode_db

docker run \
  --name isxcode-postgre \
  --privileged=true \
  -d \
  -p 54302:5432 \
  -e POSTGRES_USER=root \
  -e POSTGRES_PASSWORD=root123 \
  -e POSTGRES_DB=isxcode_db \
  postgres:14.5

7. Adjust the sql script and force push the code

isx git push upstream GH-1309 -f

8. Submit pr to main branch

isx pr 1309 -m

9.Github interface uses Squash and merge method to merge

https://github.com/isxcode/spark-yun/pullshttps://github.com/isxcode/vip/pulls

20241212160344

10.Close the issue in Github and delete the branch

https://github.com/isxcode/spark-yun/issues/1309

isx delete 1309

11. Package first and then deploy in GitHub action

https://github.com/isxcode/spark-yun/actions/workflows/build.ymlhttps://github.com/isxcode/spark-yun/actions/workflows/deploy.yml

20241126225107