feat: 添加 README 语言切换入口和 Docker Hub 登录步骤

- 在 README.md 和 README_EN.md 顶部添加语言切换链接
- 在 docker-delete.yml 中添加 Docker Hub 登录步骤,保持与 build workflow 的一致性
- 提前验证 Docker Hub 凭证有效性,便于排查问题
This commit is contained in:
WrBug
2025-12-07 19:08:29 +08:00
parent 36b744ffb3
commit 0a11cff0a2
4 changed files with 14 additions and 8 deletions
+6
View File
@@ -10,6 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Delete Docker image
run: |
TAG_NAME="${{ github.event.release.tag_name }}"
+2
View File
@@ -3,6 +3,8 @@
[![GitHub](https://img.shields.io/badge/GitHub-WrBug%2FPolyHermes-blue?logo=github)](https://github.com/WrBug/PolyHermes)
[![Twitter](https://img.shields.io/badge/Twitter-@quant__tr-blue?logo=twitter)](https://x.com/quant_tr)
> 🌐 **Language**: [English](README_EN.md) | 中文
一个功能强大的 Polymarket 预测市场跟单交易系统,支持自动化跟单、多账户管理、实时订单推送和统计分析。
---
+2
View File
@@ -3,6 +3,8 @@
[![GitHub](https://img.shields.io/badge/GitHub-WrBug%2FPolyHermes-blue?logo=github)](https://github.com/WrBug/PolyHermes)
[![Twitter](https://img.shields.io/badge/Twitter-@quant__tr-blue?logo=twitter)](https://x.com/quant_tr)
> 🌐 **Language**: English | [中文](README.md)
A powerful copy trading system for Polymarket prediction markets, supporting automated copy trading, multi-account management, real-time order push, and statistical analysis.
---
+4 -8
View File
@@ -35,15 +35,11 @@ POLYGON_RPC_URL=https://polygon-rpc.com
# ============================================
# 安全配置(⚠️ 必须修改,不能使用默认值)
# ============================================
# 生成随机密钥命令:
# openssl rand -hex 32 # 用于 ADMIN_RESET_PASSWORD_KEY
# openssl rand -hex 64 # 用于 JWT_SECRET
JWT_SECRET=your-jwt-secret-key-here-change-in-production
ADMIN_RESET_PASSWORD_KEY=your-admin-reset-key-here-change-in-production
JWT_SECRET=change-me-in-production
ADMIN_RESET_PASSWORD_KEY=change-me-in-production
# ============================================
# 加密密钥(可选,用于加密存储私钥和 API Key
# 加密密钥(用于加密存储私钥和 API Key)
# ============================================
# CRYPTO_SECRET_KEY=your-crypto-secret-key-here
CRYPTO_SECRET_KEY=change-me-in-production