Skip to content

CI

CI #60

Workflow file for this run

name: CI
on:
workflow_dispatch:
schedule:
- cron: "0 * * * *"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: oven-sh/setup-bun@main
with:
bun-version: latest
- run: bun install
- run: bun scripts/import-notion.ts
env:
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
NOTION_COURSES_DB_ID: ${{ secrets.NOTION_COURSES_DB_ID }}
NOTION_PROBLEMS_DB_ID: ${{ secrets.NOTION_PROBLEMS_DB_ID }}
- run: bun run build:data
- run: bun run build
- uses: actions/upload-pages-artifact@main
with:
path: dist
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@main