Skip to content

Docs

Docs #688

Workflow file for this run

name: Docs
on:
push:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
jobs:
build:
name: Build
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install Dependencies
run: bun install --frozen-lockfile
working-directory: web
- name: Download Data
uses: actions/checkout@v4
with:
ref: data
path: web/data
- name: Build
run: bun run build
working-directory: web
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: docs
path: web/build
deploy:
name: Deploy
permissions:
contents: write
needs:
- build
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: docs
path: docs/build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/build
single-commit: true