Skip to content

Build CDN

Build CDN #126

Workflow file for this run

name: Build CDN
on:
schedule:
# Run every day
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
working-directory: ./cdn
run: npm ci
- name: Build
working-directory: ./cdn
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./cdn/dist
publish_branch: cdn