Skip to content

Feat: package workflow#274

Closed
xiaofeiTM233 wants to merge 1 commit into
BlueArchiveArisHelper:devfrom
xiaofeiTM233:patch/ci
Closed

Feat: package workflow#274
xiaofeiTM233 wants to merge 1 commit into
BlueArchiveArisHelper:devfrom
xiaofeiTM233:patch/ci

Conversation

@xiaofeiTM233

Copy link
Copy Markdown

No description provided.

@xiaofeiTM233 xiaofeiTM233 marked this pull request as ready for review October 29, 2025 11:13
Comment thread package.py


package_rename("./dist/BAAH", f"./dist/BAAH{config_version}")
#package_rename("./dist/BAAH", f"./dist/BAAH{config_version}")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个文件夹重命名步骤和update里面逻辑相关,去掉用户就没法双击update更新了

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看了下可以在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 }}/*  # 上传对应版本目录下的所有文件

@sanmusen214

Copy link
Copy Markdown
Collaborator

加了点功能 6e03b79

@xiaofeiTM233 xiaofeiTM233 deleted the patch/ci branch November 1, 2025 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants