1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2025-12-09 15:18:15 +08:00

Update ci.yml

This commit is contained in:
涵曦
2024-12-19 10:53:30 +08:00
committed by GitHub
parent 772a9c4e53
commit 34d33fee29

View File

@@ -165,7 +165,7 @@ jobs:
# 仅在 ref 为以 v 开头的标签时执行
- name: Publish to Docker Hub latest and stable
if: startsWith(github.ref, 'refs/tags/v')
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
run: |
# Define the commands to push latest and stable tags
echo "Pushing latest and stable tags..."