Update run.yml

This commit is contained in:
汐殇 2023-04-10 17:35:05 +08:00 committed by GitHub
parent 555093d472
commit be315871f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,10 +197,10 @@ jobs:
sort ./cn | uniq -i > data-lite/cn sort ./cn | uniq -i > data-lite/cn
go run ./ --datapath=./data-lite --outputname geosite-lite.dat go run ./ --datapath=./data-lite --outputname geosite-lite.dat
- name: Checkout SagerNet/sing-geosite - name: Checkout CHIZI-0618/sing-geosite
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
repository: SagerNet/sing-geosite repository: CHIZI-0618/sing-geosite
path: sing-geosite path: sing-geosite
- name: Build geosite-lite.db file - name: Build geosite-lite.db file
@ -208,19 +208,16 @@ jobs:
NO_SKIP: true NO_SKIP: true
run: | run: |
cd sing-geosite || exit 1 cd sing-geosite || exit 1
sed -i 's/geosite\.db/geosite-lite.db/g' main.go cp ../custom/publish/geosite-lite.dat ./
sed -i 's/v2fly\/domain-list-community/xishang0128\/meta-rules-dat/g' main.go go run -v . geosite-lite.dat geosite-lite.db
sed -i 's/dlc/geosite-lite/g' main.go
go run -v .
- name: Build geosite.db file - name: Build geosite.db file
env: env:
NO_SKIP: true NO_SKIP: true
run: | run: |
cd sing-geosite || exit 1 cd sing-geosite || exit 1
sed -i 's/geosite-lite\.db/geosite.db/g' main.go cp ../custom/publish/geosite.dat ./
sed -i 's/geosite-lite/geosite/g' main.go go run -v . geosite.dat geosite.db
go run -v .
- name: Checkout SagerNet/sing-geoip - name: Checkout SagerNet/sing-geoip
uses: actions/checkout@v3 uses: actions/checkout@v3