mirror of
https://github.com/privacy-protection-tools/anti-AD.git
synced 2025-02-12 16:43:16 +08:00
Merge 69d2244d83
into a72f3d920e
This commit is contained in:
commit
4da2ff2413
25
.github/workflows/sync-to-dist.yml
vendored
25
.github/workflows/sync-to-dist.yml
vendored
@ -11,14 +11,32 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.1.1
|
- uses: actions/checkout@v4.1.1
|
||||||
- name: clone the website
|
- name: clone the website
|
||||||
run: git clone https://github.com/privacy-protection-tools/anti-ad.github.io.git ~/website
|
run: git clone https://github.com/privacy-protection-tools/anti-ad.github.io.git ~/website
|
||||||
- name: copy some list files
|
|
||||||
|
- name: Install sing-box
|
||||||
|
env:
|
||||||
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
run: |
|
||||||
|
sudo curl -fsSL https://sing-box.app/gpg.key -o /etc/apt/keyrings/sagernet.asc
|
||||||
|
sudo chmod a+r /etc/apt/keyrings/sagernet.asc
|
||||||
|
echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/sagernet.asc] https://deb.sagernet.org/ * *" | sudo tee /etc/apt/sources.list.d/sagernet.list > /dev/null
|
||||||
|
sudo apt-get update
|
||||||
|
# Switch to stable version if sing-box 1.10.0 released
|
||||||
|
sudo apt-get install sing-box-beta
|
||||||
|
|
||||||
|
- name: Compile sing-box rule-set
|
||||||
|
run: |
|
||||||
|
sing-box rule-set convert --type adguard ./anti-ad-adguard.txt --output ./anti-ad-sing-box.srs
|
||||||
|
echo '========================================'
|
||||||
|
sha256sum ./anti-ad-sing-box.srs
|
||||||
|
echo '========================================'
|
||||||
|
|
||||||
|
- name: Copy some list files
|
||||||
run: |
|
run: |
|
||||||
cp ./anti-ad-easylist.txt ~/website/docs/easylist.txt
|
cp ./anti-ad-easylist.txt ~/website/docs/easylist.txt
|
||||||
cp ./anti-ad-easylist.txt.md5 ~/website/docs/easylist.txt.md5
|
cp ./anti-ad-easylist.txt.md5 ~/website/docs/easylist.txt.md5
|
||||||
@ -31,6 +49,8 @@ jobs:
|
|||||||
cp ./anti-ad-surge2.txt ~/website/docs/surge2.txt
|
cp ./anti-ad-surge2.txt ~/website/docs/surge2.txt
|
||||||
cp ./anti-ad-clash.yaml ~/website/docs/clash.yaml
|
cp ./anti-ad-clash.yaml ~/website/docs/clash.yaml
|
||||||
cp ./anti-ad-domains.txt ~/website/docs/domains.txt
|
cp ./anti-ad-domains.txt ~/website/docs/domains.txt
|
||||||
|
cp ./anti-ad-sing-box.srs ~/website/docs/anti-ad-sing-box.srs
|
||||||
|
|
||||||
- name: Commit files
|
- name: Commit files
|
||||||
run: |
|
run: |
|
||||||
cd ~/website
|
cd ~/website
|
||||||
@ -38,6 +58,7 @@ jobs:
|
|||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
git add .
|
git add .
|
||||||
git commit -m "pull newest list." -a
|
git commit -m "pull newest list." -a
|
||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
| `anti-ad-surge2.txt` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-surge2.txt) | [官网地址🚀](https://anti-ad.net/surge2.txt) | Surge或其他工具,DOMAIN-SET 格式性能更好。 |
|
| `anti-ad-surge2.txt` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-surge2.txt) | [官网地址🚀](https://anti-ad.net/surge2.txt) | Surge或其他工具,DOMAIN-SET 格式性能更好。 |
|
||||||
| `anti-ad-clash.yaml` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-clash.yaml) | [官网地址🚀](https://anti-ad.net/clash.yaml) | Clash Premium。 ([白名单](https://raw.githubusercontent.com/privacy-protection-tools/dead-horse/master/anti-ad-white-for-clash.yaml)) |
|
| `anti-ad-clash.yaml` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-clash.yaml) | [官网地址🚀](https://anti-ad.net/clash.yaml) | Clash Premium。 ([白名单](https://raw.githubusercontent.com/privacy-protection-tools/dead-horse/master/anti-ad-white-for-clash.yaml)) |
|
||||||
| `anti-ad-smartdns.conf` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-smartdns.conf) | [官网地址🚀](https://anti-ad.net/anti-ad-for-smartdns.conf) | SmartDNS ([白名单](https://raw.githubusercontent.com/privacy-protection-tools/dead-horse/master/anti-ad-white-for-smartdns.txt)) |
|
| `anti-ad-smartdns.conf` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-smartdns.conf) | [官网地址🚀](https://anti-ad.net/anti-ad-for-smartdns.conf) | SmartDNS ([白名单](https://raw.githubusercontent.com/privacy-protection-tools/dead-horse/master/anti-ad-white-for-smartdns.txt)) |
|
||||||
|
| `anti-ad-sing-box.srs` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-ad.github.io/master/docs/anti-ad-sing-box.srs) | [官网地址🚀](https://anti-ad.net/anti-ad-sing-box.srs) | sing-box(二进制文件,仅支持`1.10.0-alpha.25`及以上版本) |
|
||||||
|
|
||||||
## 争议域名
|
## 争议域名
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user