Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CalmLong committed Apr 12, 2022
1 parent ff7311b commit ed7ac65
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 470 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ jobs:

- name: Build geoip file
run: |
go run geoip
- name: Move files to publish directory
run: |
mkdir -p publish
mv geoip.dat ./publish
go run github.com/v2fly/geoip@latest -c config.json
- name: Git push assets to "release" branch
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Github Action 每日自动构建
## 引用以下项目

* [github.com/carrnot/china-ip-list](https://github.com/carrnot/china-ip-list)
* [github.com/v2fly/v2ray-core](https://github.com/v2fly/v2ray-core)
* [github.com/v2fly/geoip](https://github.com/v2fly/geoip)
26 changes: 26 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"input": [
{
"type": "text",
"action": "add",
"args": {
"name": "cn",
"uri": "https://raw.githubusercontent.com/carrnot/china-ip-list/release/ip.txt"
}
},
{
"type": "private",
"action": "add"
}
],
"output": [
{
"type": "v2rayGeoIPDat",
"action": "output",
"args": {
"outputName": "geoip.dat",
"outputDir": "./publish"
}
}
]
}
21 changes: 0 additions & 21 deletions go.mod

This file was deleted.

Loading

0 comments on commit ed7ac65

Please sign in to comment.