Skip to content

feat(bilibili-block): 支持通过 Tampermonkey 菜单配置屏蔽规则 #3

feat(bilibili-block): 支持通过 Tampermonkey 菜单配置屏蔽规则

feat(bilibili-block): 支持通过 Tampermonkey 菜单配置屏蔽规则 #3

Workflow file for this run

name: Build & Publish UserScripts
on:
push:
branches: [main]
paths:
- 'src/**'
- 'scripts/**'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.json'
- '.github/workflows/**'
# 允许手动触发
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run typecheck
- run: npm run build
# 生成同步清单(供调试和 Webhook 使用)
- name: Generate sync manifest
run: npm run manifest
# 部署 dist/ 到 gh-pages 分支
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
# 不保留历史,每次全量替换
keep_files: false