Skip to content

Commit

Permalink
feat: add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
dineshdb committed Jun 16, 2024
1 parent 1341c86 commit 859bb4c
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 423 deletions.
29 changes: 12 additions & 17 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

name: Deploy GitHub Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
Expand All @@ -21,23 +16,23 @@ concurrency:
cancel-in-progress: true

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
uses: actions/checkout@v4
- name: check if the filter list is uniquely sorted
run: sort -u -c lists/nepali-news-sites.txt
- uses: denoland/setup-deno@v1
with:
source: ./
destination: ./_site
deno-version: v1.x
- name: Build filters
run: deno run -A scripts/build.ts
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
Expand All @@ -47,4 +42,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ It does not aim to block all the aids, only the most obnoxious ones.

## Installation

Use following link to import
[Click to subscribe
automatically](abp:subscribe?location=https://dineshdb.github.io/adblocklist/filters/nepali-news-filters.txt&title=Nepali
News Clean Filter) or add
[this list](https://dineshdb.github.io/adblocklist/filters/nepali-news-filters.txt)
manually.

## LICENSE

Expand Down
Loading

0 comments on commit 859bb4c

Please sign in to comment.