From 0585d70ab05d2c3f865dcaf22959286a500325ed Mon Sep 17 00:00:00 2001 From: eddy Date: Sat, 1 Aug 2026 02:16:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86=E9=83=A8=E7=BD=B2=E6=BA=90?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E8=87=B3=20Gitea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新仓库及归档下载地址,改用 Gitea 实例 - 同步调整部署状态提示以反映新的下载来源 --- deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index bd49b7f..3c550e3 100644 --- a/deploy.sh +++ b/deploy.sh @@ -2,8 +2,8 @@ set -Eeuo pipefail -REPO_URL="https://github.com/ghuang-top/Tasks" -REPO_ARCHIVE_URL="${REPO_URL}/archive/refs/heads/main.tar.gz" +REPO_URL="https://gitea.tohub.top/Share/Tasks" +REPO_ARCHIVE_URL="${REPO_URL}/archive/main.tar.gz" TARGET_DIR="/root/data/docker_data/Nginx/html/tasks" RED='\033[0;31m' @@ -71,7 +71,7 @@ deploy() ( archive_file="$temp_dir/repository.tar.gz" trap 'rm -rf -- "$temp_dir"' EXIT - print_info "正在从 GitHub 下载最新版本..." + print_info "正在从 Gitea 下载最新版本..." print_info "仓库地址: $REPO_URL" if ! curl -fL --retry 3 --connect-timeout 15 "$REPO_ARCHIVE_URL" -o "$archive_file"; then print_error "仓库下载失败,请检查网络连接及 main 分支是否存在"