Skip to content

Commit 178d912

Browse files
Nightly build
0 parents  commit 178d912

33 files changed

+383281
-0
lines changed

.github/workflows/closeIssues.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v9
14+
with:
15+
days-before-issue-stale: 30
16+
days-before-issue-close: 14
17+
stale-issue-label: "stale"
18+
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
19+
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
20+
days-before-pr-stale: -1
21+
days-before-pr-close: -1
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Release Shadowrocket Rules
2+
3+
on:
4+
schedule:
5+
# 每日8时开始
6+
- cron: '0 23 * * *'
7+
8+
push:
9+
branches:
10+
- build
11+
paths-ignore:
12+
- '**.md'
13+
- 'LICENSE'
14+
15+
pull_request_target:
16+
branches:
17+
- build
18+
paths-ignore:
19+
- '**.md'
20+
- 'LICENSE'
21+
22+
workflow_dispatch:
23+
24+
jobs:
25+
Release:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
with:
30+
ref: build
31+
path: build
32+
33+
- uses: actions/checkout@v4
34+
with:
35+
ref: release
36+
path: release
37+
38+
- name: Install requirements
39+
run: pip3 install -r build/requirements.txt
40+
41+
- name: Build Rules
42+
run: |
43+
cd build || exit 1
44+
./factory/auto_build.sh
45+
46+
- name: Move files
47+
run: |
48+
cd build || exit 1
49+
cp *.conf ../release/
50+
cp -r figure ../release/
51+
cp LICENSE ../release/
52+
cp readme.md ../release/
53+
54+
- name: Update lazy rules
55+
run: |
56+
cd release || exit 1
57+
rm lazy.conf lazy_group.conf
58+
curl -O https://raw.githubusercontent.com/wlxuf/Shadowrocket/main/lazy.conf
59+
curl -O https://raw.githubusercontent.com/wlxuf/Shadowrocket/main/lazy_group.conf
60+
61+
- name: Remove commits
62+
run: |
63+
cd release || exit 1
64+
git config user.name 'github-actions[bot]'
65+
git config user.email 'github-actions[bot]@users.noreply.github.com'
66+
git checkout --orphan latest_branch
67+
git add -A
68+
git commit -am "Nightly build"
69+
git branch -D release
70+
git branch -m release
71+
git push -f origin release

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

figure/guide.png

333 KB
Loading

figure/lazy.png

4.44 KB
Loading

figure/lazy_group.png

4.41 KB
Loading

figure/sr_ad_only.png

4.35 KB
Loading

figure/sr_backcn.png

4.39 KB
Loading

figure/sr_backcn_ad.png

4.45 KB
Loading

figure/sr_cnip.png

4.41 KB
Loading

0 commit comments

Comments
 (0)