Update build.yml

Removed AdBlock domains
This commit is contained in:
Loyalsoldier 2019-12-15 03:17:46 +08:00 committed by GitHub
parent 72d7e3f1b4
commit fd8f751888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,6 @@ jobs:
echo "::set-env name=GEOIP_REPO::github.com/v2ray/geoip" echo "::set-env name=GEOIP_REPO::github.com/v2ray/geoip"
echo "::set-env name=GEOSITE_REPO::github.com/v2ray/domain-list-community" echo "::set-env name=GEOSITE_REPO::github.com/v2ray/domain-list-community"
echo "::set-env name=GFWLIST_URL::https://cokebar.github.io/gfwlist2dnsmasq/gfwlist_domain.txt" echo "::set-env name=GFWLIST_URL::https://cokebar.github.io/gfwlist2dnsmasq/gfwlist_domain.txt"
echo "::set-env name=ADBLOCK_URL::https://raw.githubusercontent.com/h2y/Shadowrocket-ADBlock-Rules/master/factory/resultant/ad.list"
echo "::set-env name=Profiles_URL::https://raw.githubusercontent.com/ConnersHua/Profiles/master/Shadow/Pro.conf" echo "::set-env name=Profiles_URL::https://raw.githubusercontent.com/ConnersHua/Profiles/master/Shadow/Pro.conf"
echo "::set-env name=CHINA_DOMAINS_URL::https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/accelerated-domains.china.conf" echo "::set-env name=CHINA_DOMAINS_URL::https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/accelerated-domains.china.conf"
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin" echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin"
@ -80,12 +79,6 @@ jobs:
curl -sSL $Profiles_URL | grep REJECT | grep DOMAIN | cut -d ',' -f 2 > profilereject curl -sSL $Profiles_URL | grep REJECT | grep DOMAIN | cut -d ',' -f 2 > profilereject
echo "include:profilereject" >> category-ads-all echo "include:profilereject" >> category-ads-all
- name: Get and add reject domains from @h2y/Shadowrocket-ADBlock-Rules into category-ads-all
run: |
cd $GOPATH/src/$GEOSITE_REPO/data
curl -sSL $ADBLOCK_URL | awk '!/[0-9]+$/ { print }' > adblockreject
echo "include:adblockreject" >> category-ads-all
- name: Build geosite.dat file - name: Build geosite.dat file
run: | run: |
domain-list-community domain-list-community