From 4e4ef7bd85a4609fb4a5e8f5b16a8cd9cf6695d0 Mon Sep 17 00:00:00 2001 From: Loyalsoldier Date: Tue, 31 Dec 2019 03:28:59 +0800 Subject: [PATCH] Just copy geoip.dat from repo temporarily --- .github/workflows/build.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c3e49f5..f877c982 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,17 +39,23 @@ jobs: with: ref: hidden - - name: Get GeoLite2 file - run: | - curl -sSL -O https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip - unzip GeoLite2-Country-CSV.zip - rm -f GeoLite2-Country-CSV.zip - mv GeoLite2* geoip +# - name: Get GeoLite2 file +# run: | +# curl -sSL -O https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip +# unzip GeoLite2-Country-CSV.zip +# rm -f GeoLite2-Country-CSV.zip +# mv GeoLite2* geoip - - name: Generate geoip.dat file +# - name: Generate geoip.dat file +# run: | +# go get -u -v -insecure $GEOIP_REPO +# geoip --country=./geoip/GeoLite2-Country-Locations-en.csv --ipv4=./geoip/GeoLite2-Country-Blocks-IPv4.csv --ipv6=./geoip/GeoLite2-Country-Blocks-IPv6.csv +# mkdir -p ./publish +# mv ./geoip.dat ./publish/ + + - name: Copy geoip.dat run: | - go get -u -v -insecure $GEOIP_REPO - geoip --country=./geoip/GeoLite2-Country-Locations-en.csv --ipv4=./geoip/GeoLite2-Country-Blocks-IPv4.csv --ipv6=./geoip/GeoLite2-Country-Blocks-IPv6.csv + curl -sSL -O https://github.com/Loyalsoldier/v2ray-rules-dat/raw/master/geoip.dat mkdir -p ./publish mv ./geoip.dat ./publish/