1
0
mirror of https://github.com/MetaCubeX/meta-rules-dat.git synced 2025-11-03 17:46:54 +08:00

add meta-rule-set

This commit is contained in:
xishang0128
2023-12-01 16:25:26 +08:00
parent ad85e0596f
commit 017479b5c4
2 changed files with 75 additions and 0 deletions

View File

@@ -243,6 +243,29 @@ jobs:
chmod 755 mosdns sing-box convert.sh && ./convert.sh
rm mosdns* sing-box* convert.sh geoip.dat geosite.db LICENSE README.md config.yaml
- name: Convert geo to meta-rule-set
env:
NO_SKIP: true
run: |
mkdir -p ./meta-rule/geo
cp ./geoip.dat ./custom/publish/geosite.dat ./resouces/convert-clash.sh ./meta-rule/geo/
cd ./meta-rule/geo
wget https://github.com/IrineSistiana/mosdns/releases/download/v4.5.3/mosdns-linux-amd64.zip -O mosdns.zip && unzip mosdns.zip
chmod 755 mosdns convert-clash.sh && ./convert-clash.sh
rm mosdns* convert-clash.sh geoip.dat geosite.dat LICENSE README.md config.yaml
- name: Convert geo-lite to meta-rule-set
env:
NO_SKIP: true
run: |
mkdir -p ./meta-rule/geo-lite
cp ./geoip-lite.dat ./meta-rule/geo-lite/geoip.dat && cp ./community/geosite-lite.dat ./meta-rule/geo-lite/geosite.dat && cp ./resouces/convert-clash.sh ./meta-rule/geo-lite/
cd ./meta-rule/geo-lite
wget https://github.com/IrineSistiana/mosdns/releases/download/v4.5.3/mosdns-linux-amd64.zip -O mosdns.zip && unzip mosdns.zip
chmod 755 mosdns convert-clash.sh && ./convert-clash.sh
rm mosdns* convert-clash.sh geoip.dat geosite.dat LICENSE README.md config.yaml
- name: Move and zip files
run: |
mkdir -p ./publish/
@@ -316,6 +339,20 @@ jobs:
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -f -u origin sing
- name: Git push assets to "meta-rule" branch
run: |
cd meta-rule || exit 1
ls
git init
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout -b meta
git add .
git commit -m "Released on ${{ env.BUILDTIME }}"
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -f -u origin meta
- name: Purge jsdelivr CDN
run: |
cd publish || exit 1