Feat: package workflow#274
Closed
xiaofeiTM233 wants to merge 1 commit into
Closed
Conversation
sanmusen214
requested changes
Oct 31, 2025
|
|
||
|
|
||
| package_rename("./dist/BAAH", f"./dist/BAAH{config_version}") | ||
| #package_rename("./dist/BAAH", f"./dist/BAAH{config_version}") |
Collaborator
There was a problem hiding this comment.
这个文件夹重命名步骤和update里面逻辑相关,去掉用户就没法双击update更新了
Collaborator
There was a problem hiding this comment.
看了下可以在action里运行py脚本这样获取到版本号名称
# 步骤2: 运行get_version_name脚本并捕获版本名称
- name: Get version from script
id: get_version
run: |
# 假设脚本输出版本字符串到标准输出,例如"1.0.0"
VERSION=$(python get_version_name.py) # 如果是Python脚本
echo "version=$VERSION" >> $GITHUB_OUTPUT # 设置步骤输出
...
# 步骤4: 创建Release并上传文件
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.get_version.outputs.version }} # Release标签
name: Release v${{ steps.get_version.outputs.version }}
files: |
./dist/${{ steps.get_version.outputs.version }}/* # 上传对应版本目录下的所有文件
Collaborator
|
加了点功能 6e03b79 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.