From 0951029a4d989b51982f0251ed5910212eba3982 Mon Sep 17 00:00:00 2001 From: ElonJunior Date: Wed, 1 May 2024 02:33:39 +0800 Subject: [PATCH] add jsdelivr CDN --- .github/workflows/run.yml | 33 +++++++++++++++++---------------- README.md | 16 +++++++++++++--- 2 files changed, 30 insertions(+), 19 deletions(-) diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index d47175c1..52efde12 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -33,6 +33,7 @@ jobs: mkdir -p ./sing-rule/ cp ./workflow/resouces/convert_* ./sing-rule/ cd sing-rule || exit 1 + ls -lha ../ACL4SSR/Clash/Ruleset python convert_json.py ../ACL4SSR/Clash ./ - name: Convert json to srs @@ -46,21 +47,21 @@ jobs: - name: Git push assets to "sing-rule" branch run: | - cd sing-rule || exit 1 - ls - git init - git config --local user.name "github-actions[bot]" - git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" - git checkout -b sing - git add . - git commit -m "Released on ${{ env.BUILDTIME }}" - git remote add origin "https://${{ github.actor }}:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}" - git push -f -u origin sing + cd sing-rule || exit 1 + ls + git init + git config --local user.name "github-actions[bot]" + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git checkout -b sing + git add . + git commit -m "Released on ${{ env.BUILDTIME }}" + git remote add origin "https://${{ github.actor }}:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}" + git push -f -u origin sing - # - name: Purge jsdelivr CDN - # run: | - # cd publish || exit 1 - # for file in $(ls); do - # curl -i "https://purge.jsdelivr.net/gh/${{ github.repository }}@release/${file}" - # done \ No newline at end of file + - name: Purge jsdelivr CDN + run: | + cd sing-rule || exit 1 + for file in $(ls); do + curl -i "https://purge.jsdelivr.net/gh/${{ github.repository }}@sing/${file}" + done \ No newline at end of file diff --git a/README.md b/README.md index 370101f9..382b728c 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,22 @@ - 基于clash规则源文件生成的json和srs规则文件 - 推荐配合[karing](https://github.com/KaringX/karing)食用更佳 +## 下载链接 +### 方案1 github +- 比如需要国内IP直连, 对应文件为 `ChinaIp.srs` +- 访问链接: +https://raw.githubusercontent.com/KaringX/ACL4SSR/sing/ChinaIp.srs + +### 方案2 CDN:jsdelivr +- 比如需要去广告功能, 对应文件为 `BanAD.srs` +- 访问链接: +https://fastly.jsdelivr.net/gh/karingX/ACL4SSR@sing/BanAD.srs + ## 规则碎片 -主要文件在**sing分支** *Ruleset*文件夹下,可以配合一些订阅转换或者代理工具进行使用。 - -具体怎么使用需要看对应软件配置是怎么写的,还要请大家阅读你所使用的软件文档,看是否能使用 +- 主要文件在**sing分支**根目录和*Ruleset*文件夹下,可以配合一些订阅转换或者代理工具进行使用。 +- 下面是部分文件的注释,所有文件列表查看 [sing分支目录](https://github.com/KaringX/ACL4SSR/tree/sing) | 文件 | 类型 | 解释 | | ---------------------- | -------------------- | ------------------------------------------------------------ |