Skip to content

Commit

Permalink
Nightly build
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 25, 2023
0 parents commit 6b5f15e
Show file tree
Hide file tree
Showing 33 changed files with 332,669 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/closeIssues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Close inactive issues
on:
schedule:
- cron: "30 1 * * *"

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v6
with:
days-before-issue-stale: 30
days-before-issue-close: 14
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}
64 changes: 64 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Release Shadowrocket Rules

on:
schedule:
# 每日8时开始
- cron: '0 23 * * *'

push:
branches:
- build
paths-ignore:
- '**.md'
- 'LICENSE'

pull_request_target:
branches:
- build
paths-ignore:
- '**.md'
- 'LICENSE'

workflow_dispatch:

jobs:
Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: build
path: build

- uses: actions/checkout@v3
with:
ref: release
path: release

- name: Install requirements
run: pip3 install -r build/requirements.txt

- name: Build Rules
run: |
cd build || exit 1
./factory/auto_build.sh
- name: Move files
run: |
cd build || exit 1
cp *.conf ../release/
cp -r figure ../release/
cp LICENSE ../release/
cp readme.md ../release/
- name: Remove commits
run: |
cd release || exit 1
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git checkout --orphan latest_branch
git add -A
git commit -am "Nightly build"
git branch -D release
git branch -m release
git push -f origin release
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +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.
Binary file added figure/guide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/lazy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/lazy_group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/sr_ad_only.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/sr_backcn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/sr_backcn_ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/sr_cnip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/sr_cnip_ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/sr_direct_banad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/sr_proxy_banad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/sr_top500_banlist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/sr_top500_banlist_ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/sr_top500_whitelist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/sr_top500_whitelist_ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions figure/免费在线二维码生成器.url
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[InternetShortcut]
URL=https://cn.online-qrcode-generator.com/
210 changes: 210 additions & 0 deletions lazy.conf

Large diffs are not rendered by default.

233 changes: 233 additions & 0 deletions lazy_group.conf

Large diffs are not rendered by default.

Loading

0 comments on commit 6b5f15e

Please sign in to comment.