Files
Shadowrocket-ADBlock-Rules-…/.github/workflows/main.yml
2022-11-04 14:39:06 +08:00

43 lines
756 B
YAML

name: Build 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:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install requirements
run: pip3 install -r requirements.txt
- name: Run auto-build.sh
run: ./factory/auto_build.sh
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
BRANCH: build
FOLDER: .
commit-message : 'Nightly build'