Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Build, Test and Deploy Rules
permissions:
contents: write
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build:
name: Build
Expand Down Expand Up @@ -45,7 +48,7 @@ jobs:
jsonlint-php public/data.min.json
jsonlint-php public/data.minify.json
deploy:
name: Deploy
name: Deploy to repo
runs-on: ubuntu-latest
needs: test
steps:
Expand All @@ -56,9 +59,17 @@ jobs:
with:
name: rules-artifact
path: public
- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages
- name: Copy files to result
run: |
mkdir -p result
cp public/data.min.json result/data.min.json
cp public/rules.min.hash result/rules.min.hash
cp public/data.minify.json result/data.minify.json
cp public/rules.minify.hash result/rules.minify.hash
- name: Commit and push result
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add result/
git commit -m "Update result files [skip ci]" || echo "No changes to commit"
git push
12 changes: 12 additions & 0 deletions data.min.json
Original file line number Diff line number Diff line change
Expand Up @@ -3179,6 +3179,18 @@
"exceptions": [],
"redirections": [],
"forceRedirection": false
},
"aparat.com": {
"urlPattern": "^https?:\\/\\/(?:[a-z0-9-]+\\.)*?aparat\\.com",
"completeProvider": false,
"rules": [
"refererRef"
],
"referralMarketing": [],
"rawRules": [],
"exceptions": [],
"redirections": [],
"forceRedirection": false
}
}
}
Loading