Skip to content

Preprocess HTML and Deploy #124

Preprocess HTML and Deploy

Preprocess HTML and Deploy #124

name: Preprocess HTML and Deploy
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Runs daily at midnight UTC
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm install cheerio unirest ejs node-fetch
- name: Run preprocessing script
run: node preprocess-webpage.js
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs