Skip to content

Commit 07995af

Browse files
committed
initial commit
0 parents  commit 07995af

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/release.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Github Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- run: |
14+
wget -qO- http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest |
15+
awk -F '|' '$2=="CN" && $3=="ipv4" {printf "%s/%s\n", $4, 32-log($5)/log(2)}' > ignore.list
16+
- uses: ncipollo/release-action@v1
17+
with:
18+
artifacts: 'ignore.list'
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
- uses: slackapi/slack-github-action@v1.16.0
21+
with:
22+
channel-id: github
23+
slack-message: 'github release ok'
24+
env:
25+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
cn-ignore-list
2+
==============
3+
4+
[ignore.list][1] is used by [openwrt-shadowsocks][2]
5+
6+
```bash
7+
wget -qO- http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest |
8+
awk -F '|' '$2=="CN" && $3=="ipv4" {printf "%s/%s\n", $4, 32-log($5)/log(2)}' > ignore.list
9+
```
10+
11+
[1]: https://github.com/easypi/cn-ignore-list/releases
12+
[2]: https://github.com/shadowsocks/openwrt-shadowsocks

0 commit comments

Comments
 (0)