Compare commits

..

5 Commits

Author SHA1 Message Date
895866b9e1 Feat: use CIDR from repo @Loyalsoldier/geoip 2021-11-03 18:05:38 +08:00
b10802d5f3 Chore: update actions/checkout 2021-10-18 08:22:16 +08:00
c3b9c36c72 README: add donation info 2021-10-16 09:40:50 +08:00
9666b73222 Purge CDN after a new release (#45)
Co-authored-by: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
2021-08-28 19:31:31 +08:00
3231f9422a Fix: degrade to fix upload 2021-08-09 19:11:26 +08:00
2 changed files with 26 additions and 5 deletions

View File

@ -27,11 +27,12 @@ jobs:
echo "felixonmars_apple=https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/apple.china.conf" >> $GITHUB_ENV
echo "felixonmars_google=https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/google.china.conf" >> $GITHUB_ENV
echo "ipipnet_chinaiplist=https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt" >> $GITHUB_ENV
echo "telegram_cidr=https://core.telegram.org/resources/cidr.txt" >> $GITHUB_ENV
echo "lan_cidr=https://raw.githubusercontent.com/Loyalsoldier/geoip/release/text/private.txt" >> $GITHUB_ENV
echo "telegram_cidr=https://raw.githubusercontent.com/Loyalsoldier/geoip/release/text/telegram.txt" >> $GITHUB_ENV
shell: bash
- name: Checkout the "hidden" branch
uses: actions/checkout@v2.3.4
uses: actions/checkout@v2
with:
ref: hidden
@ -95,15 +96,21 @@ jobs:
- name: Generate telegramcidr.txt file
run: |
echo "payload:" > telegramcidr.txt
curl -sSL ${telegram_cidr} | perl -ne '/(.+\/\d+)/ && print " - |$1|\n"' | sed "s/|/'/g" >> telegramcidr.txt
- name: Generate lancidr.txt file
run: |
echo "payload:" > lancidr.txt
curl -sSL ${lan_cidr} | perl -ne '/(.+\/\d+)/ && print " - |$1|\n"' | sed "s/|/'/g" >> lancidr.txt
- name: Move files to publish directory
run: |
mkdir -p publish
install -p {apple,icloud,google,proxy,direct,reject,private,gfw,greatfire,tld-not-cn,cncidr,lancidr,telegramcidr}.txt ./publish/
cp *.txt ./publish/
- name: Release and upload assets
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v0.1.6
with:
name: ${{ env.RELEASE_NAME }}
tag_name: ${{ env.TAG_NAME }}
@ -116,7 +123,7 @@ jobs:
- name: Git push assets to "release" branch
run: |
cd publish
cd publish || exit 1
git init
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
@ -125,3 +132,10 @@ jobs:
git commit -m "${{ env.RELEASE_NAME }}"
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -f origin release
- name: Purge jsdelivr CDN
run: |
cd publish || exit 1
for file in $(ls); do
curl -i "https://purge.jsdelivr.net/gh/${{ github.repository }}@release/${file}"
done

View File

@ -226,6 +226,8 @@ rules:
- RULE-SET,google,DIRECT
- RULE-SET,proxy,PROXY
- RULE-SET,direct,DIRECT
- RULE-SET,lancidr,DIRECT
- RULE-SET,cncidr,DIRECT
- RULE-SET,telegramcidr,PROXY
- GEOIP,,DIRECT
- GEOIP,CN,DIRECT
@ -294,6 +296,11 @@ rules:
- MATCH,DIRECT
```
## 激赏 | Donation
- **比特币BTCbech32 地址**bc1qfe4nxcanet4w4ph8pf6qqyf263y68vw26nv9j9
- **比特币BTC地址**3PRyneb1D7jFFBakAaJiCRSsxsXAtMr7LN
## 致谢
- [@Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat)