Compare commits

..

6 Commits

Author SHA1 Message Date
IceCodeNew
69c81d2427 Update build.yml 2020-05-28 19:43:04 +08:00
IceCodeNew
3368ff3ce4 Update build.yml 2020-05-28 09:53:57 +08:00
IceCodeNew
14291ab514 Merge remote-tracking branch 'upstream/master' 2020-05-28 09:44:57 +08:00
Loyalsoldier
c4fb238a41 Add project stats 2020-05-28 09:40:49 +08:00
loyalsoldier
838b85e50a Zip rule files into one
Closes #25
2020-05-27 14:20:47 +08:00
Loyalsoldier
10961eff9c Add project stats 2020-05-22 15:16:18 +08:00
2 changed files with 10 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ jobs:
echo "::set-env name=GEQ1AN_RULES_REJECT_URL::https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/AdBlock.list"
echo "::set-env name=LHIE1_RULES_PROXY_URL::https://raw.githubusercontent.com/lhie1/Rules/master/Surge/Surge%203/Provider/Proxy.list"
echo "::set-env name=LHIE1_RULES_REJECT_URL::https://raw.githubusercontent.com/lhie1/Rules/master/Surge/Surge%203/Provider/Reject.list"
echo "::set-env name=ICN_RULES_REJECT_URL::https://raw.githubusercontent.com/IceCodeNew/4Share/master/DNSCrypt/mybase.txt"
echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)"
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin"
shell: bash
@@ -94,6 +95,7 @@ jobs:
cat proxy.txt >> temp-proxy.txt
cat direct.txt >> temp-direct.txt
cat reject.txt >> temp-reject.txt
curl -sSL $ICN_RULES_REJECT_URL | sed -E '/^#|^$/d' >> temp-reject.txt
- name: Sort and generate redundant lists
run: |
@@ -140,11 +142,13 @@ jobs:
mv ./*-excluse-list ./publish/
cp -f $GOPATH/src/$GEOSITE_REPO/data/{proxy,direct,reject}-list ./publish/
- name: Generate dat files sha256 hash
- name: Zip files and generate sha256 hash
run: |
cd ./publish
zip rules.zip {proxy,direct,reject}-list *.dat
sha256sum geoip.dat > geoip.dat.sha256sum
sha256sum geosite.dat > geosite.dat.sha256sum
sha256sum rules.zip > rules.zip.sha256sum
- name: Release and upload assets
uses: softprops/action-gh-release@v1

View File

@@ -1,4 +1,4 @@
# 简介
# 简介 ![GitHub All Releases](https://img.shields.io/github/downloads/IceCodeNew/v2ray-rules-dat/total)
**V2Ray** 规则文件加强版,可代替 V2Ray 官方 `geoip.dat``geosite.dat` 规则文件。利用 GitHub Actions 北京时间每天早上 6 点自动构建,保证规则最新。
@@ -310,3 +310,7 @@
- [@GeQ1an/Rules](https://github.com/GeQ1an/Rules/tree/master/QuantumultX)
- [@lhie1/Rules](https://github.com/lhie1/Rules/tree/master)
- [MaxMind GeoLite2 Free IP Database](https://dev.maxmind.com/geoip/geoip2/geolite2/)
## 项目 Star 数增长趋势
[![Stargazers over time](https://starchart.cc/IceCodeNew/v2ray-rules-dat.svg)](https://starchart.cc/IceCodeNew/v2ray-rules-dat)