mirror of
https://github.com/KaringX/karing-ruleset.git
synced 2025-06-13 06:44:14 +08:00
add jsdelivr CDN
This commit is contained in:
parent
53693b16a9
commit
0951029a4d
33
.github/workflows/run.yml
vendored
33
.github/workflows/run.yml
vendored
@ -33,6 +33,7 @@ jobs:
|
|||||||
mkdir -p ./sing-rule/
|
mkdir -p ./sing-rule/
|
||||||
cp ./workflow/resouces/convert_* ./sing-rule/
|
cp ./workflow/resouces/convert_* ./sing-rule/
|
||||||
cd sing-rule || exit 1
|
cd sing-rule || exit 1
|
||||||
|
ls -lha ../ACL4SSR/Clash/Ruleset
|
||||||
python convert_json.py ../ACL4SSR/Clash ./
|
python convert_json.py ../ACL4SSR/Clash ./
|
||||||
|
|
||||||
- name: Convert json to srs
|
- name: Convert json to srs
|
||||||
@ -46,21 +47,21 @@ jobs:
|
|||||||
|
|
||||||
- name: Git push assets to "sing-rule" branch
|
- name: Git push assets to "sing-rule" branch
|
||||||
run: |
|
run: |
|
||||||
cd sing-rule || exit 1
|
cd sing-rule || exit 1
|
||||||
ls
|
ls
|
||||||
git init
|
git init
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git checkout -b sing
|
git checkout -b sing
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Released on ${{ env.BUILDTIME }}"
|
git commit -m "Released on ${{ env.BUILDTIME }}"
|
||||||
git remote add origin "https://${{ github.actor }}:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}"
|
git remote add origin "https://${{ github.actor }}:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}"
|
||||||
git push -f -u origin sing
|
git push -f -u origin sing
|
||||||
|
|
||||||
|
|
||||||
# - name: Purge jsdelivr CDN
|
- name: Purge jsdelivr CDN
|
||||||
# run: |
|
run: |
|
||||||
# cd publish || exit 1
|
cd sing-rule || exit 1
|
||||||
# for file in $(ls); do
|
for file in $(ls); do
|
||||||
# curl -i "https://purge.jsdelivr.net/gh/${{ github.repository }}@release/${file}"
|
curl -i "https://purge.jsdelivr.net/gh/${{ github.repository }}@sing/${file}"
|
||||||
# done
|
done
|
16
README.md
16
README.md
@ -3,12 +3,22 @@
|
|||||||
- 基于clash规则源文件生成的json和srs规则文件
|
- 基于clash规则源文件生成的json和srs规则文件
|
||||||
- 推荐配合[karing](https://github.com/KaringX/karing)食用更佳
|
- 推荐配合[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)
|
||||||
|
|
||||||
| 文件 | 类型 | 解释 |
|
| 文件 | 类型 | 解释 |
|
||||||
| ---------------------- | -------------------- | ------------------------------------------------------------ |
|
| ---------------------- | -------------------- | ------------------------------------------------------------ |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user