Files
Jianhui Zhao 222e3855ae init
Change-Id: I28f0f5943433f218d290b9f97eaad049645fb6d5
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-10-07 20:19:13 +08:00

35 lines
635 B
YAML

name: build
on:
push:
branches:
- 'site'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build rtty site
run: npm run build
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}