Skip to content

Merge pull request #1 from Tianci-King/patch-1 #5

Merge pull request #1 from Tianci-King/patch-1

Merge pull request #1 from Tianci-King/patch-1 #5

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches:
- master
schedule:
- cron: '0 4,16 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install python dependencies
run: cd databuilder && pip install -r requirements.txt
- name: Generate data
run: cd databuilder && python preGenerator.py
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Generate site
run: pnpm run generate
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist