feat: update workflows for docker and release processes

- Updated `.github/workflows/docker-publish.yml`:
  - Commented out the branch trigger for `main` in the `push` event to allow only tag-based Docker builds (tags like `v*.*.*`).

- Updated `.github/workflows/release.yml`:
  - Removed default release body template containing placeholder release notes. This simplifies the release creation process and avoids predefined content.
  - No functional changes to release asset upload configurations, minor format adjustment to ensure no missing newline at the file end.
This commit is contained in:
yinpeng
2025-02-12 14:20:46 +08:00
parent 17f1355099
commit e024d55006
2 changed files with 2 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ name: Docker Image CI
on:
push:
branches: [ "main" ]
# branches: [ "main" ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]

View File

@@ -24,10 +24,6 @@ jobs:
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
body: |
## Release Notes
- 自动发布版本。
- 请根据需求更新对应内容。
draft: false
prerelease: false
@@ -45,4 +41,4 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./gemini-balance.zip # 替换为你的构建文件路径
asset_name: gemini-balance.zip # 替换为你的文件名
asset_content_type: application/zip
asset_content_type: application/zip