mirror of
https://github.com/Loyalsoldier/v2ray-rules-dat.git
synced 2024-11-10 02:55:34 +08:00
add more rules
This commit is contained in:
parent
13b5b10770
commit
971bab7096
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
@ -26,6 +26,8 @@ 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=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"
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -54,12 +56,36 @@ jobs:
|
|||||||
curl -sSL $GFWLIST_URL > gfwlist
|
curl -sSL $GFWLIST_URL > gfwlist
|
||||||
echo "include:gfwlist" >> geolocation-\!cn
|
echo "include:gfwlist" >> geolocation-\!cn
|
||||||
|
|
||||||
|
- name: Get and add proxy domains from @ConnersHua/Profiles into geolocation-!cn
|
||||||
|
run: |
|
||||||
|
cd $GOPATH/src/$GEOSITE_REPO/data
|
||||||
|
curl -sSL $Profiles_URL | grep PROXY | grep DOMAIN | cut -d ',' -f 2 > profileproxy
|
||||||
|
echo "include:profileproxy" >> geolocation-\!cn
|
||||||
|
|
||||||
|
- name: Get and add direct domains from @ConnersHua/Profiles into cn
|
||||||
|
run: |
|
||||||
|
cd $GOPATH/src/$GEOSITE_REPO/data
|
||||||
|
curl -sSL $Profiles_URL | grep DIRECT | grep DOMAIN | cut -d ',' -f 2 > profiledirect
|
||||||
|
echo "include:profiledirect" >> cn
|
||||||
|
|
||||||
- name: Get and add chinalist into cn
|
- name: Get and add chinalist into cn
|
||||||
run: |
|
run: |
|
||||||
cd $GOPATH/src/$GEOSITE_REPO/data
|
cd $GOPATH/src/$GEOSITE_REPO/data
|
||||||
curl -sSL $CHINA_DOMAINS_URL | awk -F '/' '{print $2}' > chinalist
|
curl -sSL $CHINA_DOMAINS_URL | awk -F '/' '{print $2}' > chinalist
|
||||||
echo "include:chinalist" >> cn
|
echo "include:chinalist" >> cn
|
||||||
|
|
||||||
|
- name: Get and add reject domains from @ConnersHua/Profiles into category-ads-all
|
||||||
|
run: |
|
||||||
|
cd $GOPATH/src/$GEOSITE_REPO/data
|
||||||
|
curl -sSL $Profiles_URL | grep REJECT | grep DOMAIN | cut -d ',' -f 2 > profilereject
|
||||||
|
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 | grep -Eev '#' | grep -Eev '^\d{1,3}(\.\d{1,3}){3}' > 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
|
||||||
|
Loading…
Reference in New Issue
Block a user