Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vimagick committed Dec 8, 2021
0 parents commit 07995af
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Github Release

on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
wget -qO- http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest |
awk -F '|' '$2=="CN" && $3=="ipv4" {printf "%s/%s\n", $4, 32-log($5)/log(2)}' > ignore.list
- uses: ncipollo/release-action@v1
with:
artifacts: 'ignore.list'
token: ${{ secrets.GITHUB_TOKEN }}
- uses: slackapi/[email protected]
with:
channel-id: github
slack-message: 'github release ok'
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cn-ignore-list
==============

[ignore.list][1] is used by [openwrt-shadowsocks][2]

```bash
wget -qO- http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest |
awk -F '|' '$2=="CN" && $3=="ipv4" {printf "%s/%s\n", $4, 32-log($5)/log(2)}' > ignore.list
```

[1]: https://github.com/easypi/cn-ignore-list/releases
[2]: https://github.com/shadowsocks/openwrt-shadowsocks

0 comments on commit 07995af

Please sign in to comment.