mirror of
https://github.com/Loyalsoldier/v2ray-rules-dat.git
synced 2024-11-10 15:05:38 +08:00
Update build.yml
* Change cnipv4url: [IceCodeNew/4Share:geoip_china/china_ip_list.txt](https://raw.githubusercontent.com/IceCodeNew/4Share/master/geoip_china/china_ip_list.txt) * Add more trigger
This commit is contained in:
parent
a0ff18c5c8
commit
5ab8d1e723
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -1,20 +1,22 @@
|
|||||||
name: Build V2Ray rules dat files
|
name: Build V2Ray rules dat files
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 22 * * *"
|
- cron: "30 3 * * *"
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- hidden
|
- hidden
|
||||||
|
label:
|
||||||
|
types: [created, deleted]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Go 1.14
|
- name: Setup Go 1.14.1
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
go-version: 1.14
|
go-version: 1.14.1
|
||||||
|
|
||||||
- name: Set $GOPATH and more variables
|
- name: Set $GOPATH and more variables
|
||||||
run: |
|
run: |
|
||||||
@ -54,7 +56,7 @@ jobs:
|
|||||||
- name: Generate geoip.dat file
|
- name: Generate geoip.dat file
|
||||||
run: |
|
run: |
|
||||||
go get -u -v -insecure $GEOIP_REPO
|
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
|
mkdir -p ./publish
|
||||||
mv ./geoip.dat ./publish/
|
mv ./geoip.dat ./publish/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user