Skip to content

Commit

Permalink
feat:完善submodule+github release共同组成的插件管理模式,并发布正式版v1.0.0 !packing vers…
Browse files Browse the repository at this point in the history
…ion=1.0.0
  • Loading branch information
doing1024 committed Jan 4, 2025
1 parent b386244 commit 617cf62
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 83 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Auto Release Workflow
on:
push:
branches:
- main # 可以根据需要修改分支名
- main

jobs:
create-release:
Expand All @@ -14,36 +14,36 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive # 确保检出所有子模块
fetch-depth: 0 # 获取完整的git历史
submodules: recursive
fetch-depth: 0

- name: Get version from commit
- name: Get version from commit message
id: get_version
run: |
# 从最新的tag获取版本号,如果没有tag则使用v1.0.0
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo "v1.0.0")
# 增加小版本号
PARTS=(${VERSION//./ })
LAST_PART=${PARTS[2]}
LAST_PART=$((LAST_PART+1))
NEW_VERSION="${PARTS[0]}.${PARTS[1]}.$LAST_PART"
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
COMMIT_MSG="${{ github.event.head_commit.message }}"
if [[ $COMMIT_MSG =~ version=([^[:space:]]+) ]]; then
VERSION="${BASH_REMATCH[1]}"
else
echo "Error: No version found in commit message"
exit 1
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Create Release ZIP
run: |
zip -r release.zip . -x "*.git*" # 排除.git文件夹
zip -r release.zip . -x "*.git*"
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.version }}
name: Release ${{ steps.get_version.outputs.version }}
tag_name: v${{ steps.get_version.outputs.version }}
name: Release v${{ steps.get_version.outputs.version }}
draft: false
prerelease: false
files: release.zip
body: |
自动发布版本 ${{ steps.get_version.outputs.version }}
自动发布版本 v${{ steps.get_version.outputs.version }}
触发提交信息: ${{ github.event.head_commit.message }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* 丰富文档:我们为您准备了简单易懂的文档,无需阅读复杂枯燥的长篇大论。

## 安装
1. 克隆本仓库到您的emacs配置位置
1. 下载右侧的最新release,解压到您的.emacs.d目录
3. 复制default-user-custom文件夹,命名为user-custom。
4. 启动emacs,由于所有需要的包都附带在DoingEmacs本体中,所以瞬间便可启动。

Expand Down
17 changes: 0 additions & 17 deletions before-push.py

This file was deleted.

2 changes: 1 addition & 1 deletion init.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
;;; Code:
(setq byte-compile-warnings '(cl-functions)) ; 解决Package cl is deprecated问题
(setq gc-cons-threshold (* 40 1000 1000))
(setq doingemacs-version "doingemacs 0.0.7")
(setq doingemacs-version "doingemacs 1.0.0")
(setq doingemacs-already-startup nil)
(add-to-list 'load-path "~/.emacs.d/user-custom")
(add-to-list 'load-path "~/.emacs.d/config")
Expand Down
29 changes: 0 additions & 29 deletions plugins-list

This file was deleted.

19 changes: 0 additions & 19 deletions update-plugins.py

This file was deleted.

0 comments on commit 617cf62

Please sign in to comment.