Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/periodical-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
CURRENT_DIR=$(pwd)
cd dist
./ipip2mmdb -s ./CN-ip-cidr.txt -d Country.mmdb
sed -e '/^$/d' -e 's/^/ - /' ./CN-ip-cidr.txt | sed -e '1s/^/payload:\n/' > CN-ip-cidr.yaml
cd $CURRENT_DIR

- name: Push artifacts to release branch
Expand All @@ -66,10 +67,12 @@ jobs:
git rm -rf .

cp -rf dist/CN-ip-cidr.txt ./
cp -rf dist/CN-ip-cidr.yaml ./
cp -rf dist/Country.mmdb ./

git add Country.mmdb
git add CN-ip-cidr.txt
git add CN-ip-cidr.yaml
git commit -am "Updated at $(date)"

git branch -D release
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ GeoIP2 数据库的大小仅为 111 KB,对比原来庞大的 4 MB 数据库,
| 📦 项目 | 📃 文件 | 🐙 GitHub RAW | 🚀 CDN 加速 | 🔧 适用范围
| :--: | :--: | :--: | :--: | ---- |
| IP-CIDR 列表 | CN-ip-cidr.txt | [点我下载](https://github.com/Hackl0us/GeoIP2-CN/raw/release/CN-ip-cidr.txt) | [点我起飞](https://cdn.jsdelivr.net/gh/Hackl0us/GeoIP2-CN@release/CN-ip-cidr.txt) | 防火墙、较老的代理工具等 |
| IP-CIDR 列表 | CN-ip-cidr.yaml | [点我下载](https://github.com/Hackl0us/GeoIP2-CN/raw/release/CN-ip-cidr.yaml) | [点我起飞](https://cdn.jsdelivr.net/gh/Hackl0us/GeoIP2-CN@release/CN-ip-cidr.yaml) | Clash Premium |
| GeoIP2 数据库 | Country.mmdb | [点我下载](https://github.com/Hackl0us/GeoIP2-CN/raw/release/Country.mmdb) | [点我起飞](https://cdn.jsdelivr.net/gh/Hackl0us/GeoIP2-CN@release/Country.mmdb) | Surge, Shadowrocket,<br>QuantumultX, Clash<br>等较新的代理工具|

对于网络状况良好、无污染的环境下,建议选择 GitHub RAW 的方式下载,因为可以第一获取到最新的资源,因为服务器在境外,可能下载响应时间和速度稍长,但因为文件小,所以通常问题不大。
Expand Down