Compare commits

...

2 Commits

Author SHA1 Message Date
IceCodeNew
0282f7be72 Update build.yml
Add more trigger
2020-04-03 06:50:49 +08:00
IceCodeNew
483696da29 Update build.yml
Change cnipv4url:
https://raw.githubusercontent.com/IceCodeNew/4Share/master/geoip_china/china_ip_list.txt
2020-04-03 06:41:18 +08:00

View File

@@ -5,15 +5,17 @@ on:
push:
branches:
- master
label:
types: [created, deleted]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup Go 1.14
- name: Setup Go 1.14.1
uses: actions/setup-go@v1
with:
go-version: 1.14
go-version: 1.14.1
- name: Set $GOPATH and more variables
run: |
@@ -53,7 +55,7 @@ jobs:
- 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 --cnipv4url=https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt
geoip --country=./geoip/GeoLite2-Country-Locations-en.csv --ipv4=./geoip/GeoLite2-Country-Blocks-IPv4.csv --ipv6=./geoip/GeoLite2-Country-Blocks-IPv6.csv --cnipv4url=https://raw.githubusercontent.com/IceCodeNew/4Share/master/geoip_china/china_ip_list.txt
mkdir -p ./publish
mv ./geoip.dat ./publish/