From 9cfd78b83a4e18421de615e0b106473fc2c049e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=90=E6=AE=87?= <95160953+xishang0128@users.noreply.github.com> Date: Mon, 10 Apr 2023 05:01:27 +0800 Subject: [PATCH] Update run.yml --- .github/workflows/run.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 744959a067..2c2fe01ea2 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -186,6 +186,8 @@ jobs: go run ./ --datapath=../community/data - name: Build geosite-lite.dat file + env: + NO_SKIP: true run: | cd community || exit 1 mkdir -p data-lite @@ -198,13 +200,6 @@ jobs: repository: SagerNet/sing-geosite path: sing-geosite - - name: Build geosite.db file - env: - NO_SKIP: true - run: | - cd sing-geosite || exit 1 - cp ../custom/publish/geosite.dat ./ - go run -v . geosite.dat geosite.db - name: Build geosite-lite.db file env: @@ -212,7 +207,16 @@ jobs: run: | cd sing-geosite || exit 1 cp ../community/geosite-lite.dat ./ - go run -v . geosite-lite.dat geosite-lite.db + go run -v . geosite-lite.dat geosite.db + mv geosite.db geosite-lite.db + + - name: Build geosite.db file + env: + NO_SKIP: true + run: | + cd sing-geosite || exit 1 + cp ../custom/publish/geosite.dat ./ + go run -v . geosite.dat geosite.db - name: Checkout SagerNet/sing-geoip uses: actions/checkout@v3