Build AdGuard DNS filter #6574
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build AdGuard DNS filter | |
on: | |
push: | |
schedule: | |
- cron: '0 */6 * * *' # Every 6th hour | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- name: yarn | |
run: | | |
yarn install | |
yarn run build | |
- name: prepare deploy | |
run: | | |
mkdir build | |
cp -rf Filters build/ | |
env: | |
CI: true | |
- name: deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/master' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build |