From 07995af686cbce0875136ff86a11c6051c2b469f Mon Sep 17 00:00:00 2001 From: kev Date: Wed, 8 Dec 2021 18:28:39 +0800 Subject: [PATCH] initial commit --- .github/workflows/release.yaml | 25 +++++++++++++++++++++++++ README.md | 12 ++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/release.yaml create mode 100644 README.md diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..82c4736 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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/slack-github-action@v1.16.0 + with: + channel-id: github + slack-message: 'github release ok' + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} diff --git a/README.md b/README.md new file mode 100644 index 0000000..9640291 --- /dev/null +++ b/README.md @@ -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