Skip to content

The only downloader you need. 下载器的集大成者。

feat(ci): GitCode 走香港节点加速上传

XiaoYouChRdfb54b897912
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c0dc246c..e851e42a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -815,6 +815,16 @@ jobs:
REMOTE="https://cnb:${CNB_TOKEN}@cnb.cool/XiaoYouChR/Ghost-Downloader-3"
git push "$REMOTE" main 2>&1 | sed "s/${CNB_TOKEN}/****/g" || true
+ - name: Route GitCode to HK server
+ run: |
+ sudo tee -a /etc/hosts >/dev/null <<'HOSTS'
+ 159.138.147.37 gitcode.com
+ 159.138.147.37 api.gitcode.com
+ 159.138.147.37 file.gitcode.com
+ 159.138.147.37 api.atomgit.com
+ 159.138.147.37 file.atomgit.com
+ HOSTS
+
- name: Push to GitCode
continue-on-error: true
env: