mirror of
https://github.com/hanxi/xiaomusic.git
synced 2025-12-06 14:52:50 +08:00
ci(调试): 调试 (#313)
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -2,11 +2,10 @@ name: ci
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "main"
|
- "*"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
env:
|
env:
|
||||||
TEST_TAG: ${{ secrets.DOCKERHUB_USERNAME }}/xiaomusic:${{ github.ref_name }}
|
TEST_TAG: ${{ secrets.DOCKERHUB_USERNAME }}/xiaomusic:${{ github.ref_name }}
|
||||||
RELEASE_NAME: main # 固定的 Release 名称
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -139,11 +138,7 @@ jobs:
|
|||||||
EXISTING_RELEASE=$(gh release view "${RELEASE_NAME}" --json id --jq .id || echo "")
|
EXISTING_RELEASE=$(gh release view "${RELEASE_NAME}" --json id --jq .id || echo "")
|
||||||
|
|
||||||
if [[ -n "${EXISTING_RELEASE}" ]]; then
|
if [[ -n "${EXISTING_RELEASE}" ]]; then
|
||||||
# 更新已有 Release
|
echo "release exist"
|
||||||
gh release edit "${RELEASE_NAME}" \
|
|
||||||
--prerelease=false \
|
|
||||||
--title "${RELEASE_NAME}" \
|
|
||||||
--notes "${RELEASE_BODY}"
|
|
||||||
else
|
else
|
||||||
# 创建新的 Release
|
# 创建新的 Release
|
||||||
gh release create "${RELEASE_NAME}" \
|
gh release create "${RELEASE_NAME}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user