This commit is contained in:
Larvan2 2023-04-11 06:53:09 +00:00
parent 35e2c077ac
commit a40be9c96c

View File

@ -164,29 +164,20 @@ jobs:
- name: Add `meta` data - name: Add `meta` data
env: env:
SED: sed '/^\s*#/d' | sed 's/^PROCESS-NAME,//' | sed 's/DOMAIN,/full:/g' | sed 's/DOMAIN-SUFFIX,//g' | sed 's/DOMAIN-KEYWORD,/keyword:/g' SED: sed '/^\s*#/d' | sed 's/^PROCESS-NAME,//' | sed 's/DOMAIN,/full:/g' | sed 's/DOMAIN-SUFFIX,//g' | sed 's/DOMAIN-KEYWORD,/keyword:/g' | sed '/^\s*IP-CIDR/d'
run: | run: |
curl -sSL https://raw.githubusercontent.com/xishang0128/rules/main/biliintl.list > ./community/data/biliintl curl -sSL https://raw.githubusercontent.com/xishang0128/rules/main/biliintl.list > ./community/data/biliintl
curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/OneDrive/OneDrive.list | ${{ env.SED }} > ./community/data/onedrive curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/OneDrive/OneDrive.list | ${{ env.SED }} > ./community/data/onedrive
echo "sharepoint.cn" >> ./community/data/onedrive && sort ./community/data/onedrive | uniq -i > tmp.txt && mv tmp.txt ./community/data/onedrive echo "sharepoint.cn" >> ./community/data/onedrive
curl -sSL https://raw.githubusercontent.com/xishang0128/rules/main/sharepoint.list > ./community/data/sharepoint curl -sSL https://raw.githubusercontent.com/xishang0128/rules/main/sharepoint.list > ./community/data/sharepoint
curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/PrivateTracker/PrivateTracker.list | ${{ env.SED }} > ./community/data/tracker1 curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/PrivateTracker/PrivateTracker.list | ${{ env.SED }} > ./community/data/tracker
curl -sSL https://gitea.com/XIU2/TrackersListCollection/raw/branch/master/all.txt | grep -i "\.[A-Z]" | grep -v tracker | sed 's/^.*\/\///g' | sed 's/:.*\/.*//g' >> ./community/data/tracker1 curl -sSL https://gitea.com/XIU2/TrackersListCollection/raw/branch/master/all.txt | grep -i "\.[A-Z]" | grep -v tracker | sed 's/^.*\/\///g' | sed 's/:.*\/.*//g' >> ./community/data/tracker
sort ./community/data/tracker1 | uniq -i > ./community/data/tracker
rm ./community/data/tracker1
- name: Build geosite.dat file - name: Build geosite.dat file
run: | run: |
cd custom || exit 1 cd custom || exit 1
go run ./ --datapath=../community/data go run ./ --datapath=../community/data
- name: Build geosite-lite.dat file - name: Build geosite-lite.dat file
env: env:
NO_SKIP: true NO_SKIP: true
@ -224,13 +215,6 @@ jobs:
go run ./ --datapath=./data-lite --outputname geosite-lite.dat go run ./ --datapath=./data-lite --outputname geosite-lite.dat
- name: Get geoip.dat relative files - name: Get geoip.dat relative files
run: | run: |
wget -O geoip-lite.dat https://github.com/xishang0128/geoip/raw/release/geoip.dat wget -O geoip-lite.dat https://github.com/xishang0128/geoip/raw/release/geoip.dat
@ -249,12 +233,6 @@ jobs:
./v2box migrate geoip -i ../geoip.dat -o ./geoip.db ./v2box migrate geoip -i ../geoip.dat -o ./geoip.db
./v2box migrate geoip -i ../geoip-lite.dat -o ./geoip-lite.db ./v2box migrate geoip -i ../geoip-lite.dat -o ./geoip-lite.db
- name: Move and zip files - name: Move and zip files
run: | run: |
mkdir -p ./publish/ mkdir -p ./publish/
@ -273,7 +251,6 @@ jobs:
curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Proxy/Proxy_Domain.yaml | sed '/^\s*#/d' > ./publish/proxy.yaml curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Proxy/Proxy_Domain.yaml | sed '/^\s*#/d' > ./publish/proxy.yaml
cd ./publish || exit 1 cd ./publish || exit 1
- name: Delete current release assets - name: Delete current release assets
uses: andreaswilli/delete-release-assets-action@v2.0.0 uses: andreaswilli/delete-release-assets-action@v2.0.0
with: with:
@ -281,7 +258,6 @@ jobs:
tag: latest tag: latest
deleteOnlyFromDrafts: false deleteOnlyFromDrafts: false
- name: Release and upload assets - name: Release and upload assets
uses: softprops/action-gh-release@v0.1.6 uses: softprops/action-gh-release@v0.1.6
with: with: