Skip to content

Commit

Permalink
condition delete by pre relasese
Browse files Browse the repository at this point in the history
  • Loading branch information
trueai-org committed Jun 26, 2024
1 parent 7811a35 commit ee6e825
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 12 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/dotnet-linux-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,21 @@ jobs:
- name: 删除 PDB 和部分 XML 文件
run: |
# 删除目录中的 .pdb 文件(如果存在)
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/linux-arm64/publish/*.pdb
# rm -f src/MDriveSync.Client.API/bin/Release/net8.0/linux-arm64/publish/*.pdb
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/linux-arm64/publish/*.xml
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/linux-arm64/publish/*.bat
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/linux-arm64/publish/WinSW-x64.exe
rm -rf src/MDriveSync.Client.API/bin/Release/net8.0/linux-arm64/publish/wwwroot/driver/
- name: 条件性删除 PDB 文件
run: |
# 根据版本标签包含 beta, rc, alpha 的条件来决定是否删除 .pdb 文件
if [[ ! "${{ github.event.release.tag_name }}" =~ (beta|rc|alpha) ]]; then
echo "Deleting .pdb files..."
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/linux-arm64/publish/*.pdb
else
echo "Preserving .pdb files for pre-release versions..."
- name: 创建临时目录并复制发布文件
run: |
mkdir -p temp_publish
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/dotnet-linux-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,21 @@ jobs:
- name: 删除 PDB 和部分 XML 文件
run: |
# 删除目录中的 .pdb 文件(如果存在)
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/linux-x64/publish/*.pdb
# rm -f src/MDriveSync.Client.API/bin/Release/net8.0/linux-x64/publish/*.pdb
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/linux-x64/publish/*.xml
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/linux-x64/publish/*.bat
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/linux-x64/publish/WinSW-x64.exe
rm -rf src/MDriveSync.Client.API/bin/Release/net8.0/linux-x64/publish/wwwroot/driver/
- name: 条件性删除 PDB 文件
run: |
# 根据版本标签包含 beta, rc, alpha 的条件来决定是否删除 .pdb 文件
if [[ ! "${{ github.event.release.tag_name }}" =~ (beta|rc|alpha) ]]; then
echo "Deleting .pdb files..."
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/linux-x64/publish/*.pdb
else
echo "Preserving .pdb files for pre-release versions..."
- name: 创建临时目录并复制发布文件
run: |
mkdir -p temp_publish
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/dotnet-osx-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,20 @@ jobs:
- name: 删除 PDB 和部分 XML 文件
run: |
# 删除目录中的 .pdb 文件(如果存在)
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/osx-arm64/publish/*.pdb
# rm -f src/MDriveSync.Client.API/bin/Release/net8.0/osx-arm64/publish/*.pdb
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/osx-arm64/publish/*.xml
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/osx-arm64/publish/*.bat
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/osx-arm64/publish/WinSW-x64.exe
rm -rf src/MDriveSync.Client.API/bin/Release/net8.0/osx-arm64/publish/wwwroot/driver/
- name: 条件性删除 PDB 文件
run: |
# 根据版本标签包含 beta, rc, alpha 的条件来决定是否删除 .pdb 文件
if [[ ! "${{ github.event.release.tag_name }}" =~ (beta|rc|alpha) ]]; then
echo "Deleting .pdb files..."
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/osx-arm64/publish/*.pdb
else
echo "Preserving .pdb files for pre-release versions..."
- name: 创建临时目录并复制发布文件
run: |
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/dotnet-osx-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,20 @@ jobs:
- name: 删除 PDB 和部分 XML 文件
run: |
# 删除目录中的 .pdb 文件(如果存在)
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/osx-x64/publish/*.pdb
# rm -f src/MDriveSync.Client.API/bin/Release/net8.0/osx-x64/publish/*.pdb
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/osx-x64/publish/*.xml
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/osx-x64/publish/*.bat
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/osx-x64/publish/WinSW-x64.exe
rm -rf src/MDriveSync.Client.API/bin/Release/net8.0/osx-x64/publish/wwwroot/driver/
- name: 条件性删除 PDB 文件
run: |
# 根据版本标签包含 beta, rc, alpha 的条件来决定是否删除 .pdb 文件
if [[ ! "${{ github.event.release.tag_name }}" =~ (beta|rc|alpha) ]]; then
echo "Deleting .pdb files..."
rm -f src/MDriveSync.Client.API/bin/Release/net8.0/osx-x64/publish/*.pdb
else
echo "Preserving .pdb files for pre-release versions..."
- name: 创建临时目录并复制发布文件
run: |
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/dotnet-win-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,21 @@ jobs:
echo "发布目录内容:"
dir src/MDriveSync.Client.API/bin/Release/net8.0/win-arm64/publish
- name: 删除 PDB 和部分 XML 文件
run: |
# 删除目录中的 .pdb 和部分 .xml 文件(如果存在)
Remove-Item src/MDriveSync.Client.API/bin/Release/net8.0/win-arm64/publish/*.pdb -Force -ErrorAction SilentlyContinue
# - name: 删除 PDB 和部分 XML 文件
# run: |
# # 删除目录中的 .pdb 和部分 .xml 文件(如果存在)
# Remove-Item src/MDriveSync.Client.API/bin/Release/net8.0/win-arm64/publish/*.pdb -Force -ErrorAction SilentlyContinue

- name: 条件性删除 PDB 文件
run: |
$tagName = "${{ github.event.release.tag_name }}"
if (-not ($tagName -match "beta|rc|alpha")) {
echo "Deleting .pdb files..."
Remove-Item src/MDriveSync.Client.API/bin/Release/net8.0/win-arm64/publish/*.pdb -Force -ErrorAction SilentlyContinue
} else {
echo "Preserving .pdb files for pre-release versions..."
}
- name: 压缩构建产物
run: |
# 将发布目录中的文件压缩为 zip 文件
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/dotnet-win-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,20 @@ jobs:
echo "发布目录内容:"
dir src/MDriveSync.Client.API/bin/Release/net8.0/win-x64/publish
- name: 删除 PDB 和部分 XML 文件
# - name: 删除 PDB 和部分 XML 文件
# run: |
# # 删除目录中的 .pdb 和部分 .xml 文件(如果存在)
# Remove-Item src/MDriveSync.Client.API/bin/Release/net8.0/win-x64/publish/*.pdb -Force -ErrorAction SilentlyContinue

- name: 条件性删除 PDB 文件
run: |
# 删除目录中的 .pdb 和部分 .xml 文件(如果存在)
Remove-Item src/MDriveSync.Client.API/bin/Release/net8.0/win-x64/publish/*.pdb -Force -ErrorAction SilentlyContinue
$tagName = "${{ github.event.release.tag_name }}"
if (-not ($tagName -match "beta|rc|alpha")) {
echo "Deleting .pdb files..."
Remove-Item src/MDriveSync.Client.API/bin/Release/net8.0/win-x64/publish/*.pdb -Force -ErrorAction SilentlyContinue
} else {
echo "Preserving .pdb files for pre-release versions..."
}
- name: 压缩构建产物
run: |
Expand Down
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
# MDrive 版本历史
# MDrive 版本

> 版本说明
1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0

- alpha:这通常意味着版本是早期的,可能不稳定,包含未完成的功能,主要用于内部测试。
- beta:比 alpha 更进一步,功能更完整,质量更高,但仍可能包含已知或未知的错误。
- rc(发布候选版本):接近最终产品,主要用于捕获仍然存在的细微缺陷,通常认为已经足够稳定,适合发布。

版本号后的序号如 alpha.1、beta.2 等,表示该阶段的迭代版本。数字越大,表明进行了更多的修改或优化。

- 1.0.0-alpha:表示一个早期的 alpha 测试版本。
- 1.0.0-alpha.1:表示在 alpha 版本基础上的第一个修订。
- 1.0.0-alpha.beta:表示在 alpha 版本后,加入了 beta 测试的改进。
- 1.0.0-beta:表示进入了 beta 测试阶段。
- 1.0.0-beta.2:表示 beta 阶段的第二次修订。
- 1.0.0-beta.11:表示 beta 阶段的第十一次修订。
- 1.0.0-rc.1:表示发布候选阶段的第一次修订。
- 1.0.0:表示正式发布的版本,所有预发布的测试和修订都已完成,认为是稳定可靠的。

## v1.5.5

Expand Down

0 comments on commit ee6e825

Please sign in to comment.