Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发布正式版本流程 #23

Open
liziwl opened this issue Jun 20, 2021 · 2 comments
Open

发布正式版本流程 #23

liziwl opened this issue Jun 20, 2021 · 2 comments
Labels
Instruction Operation instruction

Comments

@liziwl
Copy link
Member

liziwl commented Jun 20, 2021

基本流程

步骤1,本地修改

手动修改:

步骤1.1,在 CHANGELOG.md 中添加新版本号和对应的修改;

## [1.2.0](https://github.com/SUSTech-CRA/sustech-master-thesis/compare/v1.1.10...v1.2.0) - 2021-06-30

### Added
- 添加使用文档 `sustechthesis.pdf`- 改回 `dtx` 文件生成 `cls` 文件的形式,`dtx` 文件内有大量的注释方便后期维护。

### Changed
- 更改封面英文标题为自动大写。

步骤1.2,在 *.dtx 中3处更新版本号,这里以版本 1.2.0 为例子;

\ProvidesFile{sustechthesis.dtx}[2021/06/30 1.2.0 Southern University of Science and Technology Thesis Template]

%<cls>[2021/06/30 1.2.0 Southern University of Science and Technology Thesis Template]

\def\version{1.2.0}

现在可以自动化步骤1.2,只需运行:python3 test/update-dist.py

步骤1.3,打标签,推送标签到远端

git add .
git commit -m "Bump to v1.2.0"
git push origin master
git tag v1.2.0
git push origin v1.2.0

步骤2,在线发布

步骤2.1,在 GitHub 稍等2分钟(Actions 中有进度)左右会看到 Release 草稿
步骤2.2,复制 CHANGELOG.md 中新版本号里对应的内容,最后一行添加与上一版本的对比

### Added
- 添加使用文档 `sustechthesis.pdf`- 改回 `dtx` 文件生成 `cls` 文件的形式,`dtx` 文件内有大量的注释方便后期维护。

### Changed
- 更改封面英文标题为自动大写。

[`v1.1.10..v1.2.0`](https://github.com/SUSTech-CRA/sustech-master-thesis/compare/v1.1.10..v1.2.0)

步骤2.3,修改 Release 状态为正式发布

@liziwl liziwl added the Instruction Operation instruction label Jun 20, 2021
@liziwl liziwl pinned this issue Jun 20, 2021
@liziwl
Copy link
Member Author

liziwl commented Jun 30, 2021

删除tag

#删除本地tag
git tag -d v1.2.0
#删除远程tag
git push --delete origin v1.2.0

@ghlkm
Copy link
Collaborator

ghlkm commented May 6, 2023

python3 test/update-dist.py

python3 test/update-dist.py 只能完成第二步, CHANGELOG.md的内容要自己修改

@liziwl liziwl changed the title 发布新版本流程 发布正式版本流程 May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Instruction Operation instruction
Projects
None yet
Development

No branches or pull requests

2 participants