Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
Added 'cn' category ('geosite:cn' contains only TLDs) in order to be compatible with clients that have hardcoded 'geoip:cn' and 'geosite:cn' rules
  • Loading branch information
Chocolate4U committed Oct 17, 2023
1 parent 733ebc2 commit b381e1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ jobs:
echo "TOTAL_IR_LITE=$(wc -l < ir-lite.txt)" >> $GITHUB_ENV
mv ir.txt ir-lite.txt release
- name: Get cn tld list
run: |
curl -sSL https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/direct-tld-list.txt -o cn.txt
mv cn.txt release
- name: Generate ads list
run: |
curl -sSL https://raw.githubusercontent.com/MasterKia/PersianBlocker/main/PersianBlockerHosts.txt | sed -e 's/^\(|\|\*\|\.\|\-\|0\.0\.0\.0\|127\.0\.0\.1\)*//g' -e 's/\^.*$//g' -e '/!\|?\|@\|#\|\*\|_\|\\\|\/\|\[\|]\|\[\|\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}/d' -e '/\.$/d' -e '/^\s*$/d' | awk '{$1=$1};1' | dos2unix | idn2 --no-alabelroundtrip --no-tr46 | sort -u > ads.txt
Expand Down Expand Up @@ -143,6 +148,7 @@ jobs:
cp ../release/ir-lite.txt datalite/ir
cp ../release/ads.txt data/ads
cp ../release/ads.txt datalite/ads
cp ../release/cn.txt data/cn
cp ../release/category-ads-all.txt data/category-ads-all
cp ../release/malware.txt data/malware
cp ../release/phishing.txt data/phishing
Expand Down

0 comments on commit b381e1a

Please sign in to comment.