38 lines
883 B
YAML
38 lines
883 B
YAML
name: Docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "18"
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 8
|
|
- run: pnpm install --frozen-lockfile
|
|
- name: 'TL codegen'
|
|
run: pnpm -C packages/tl run gen-code
|
|
- name: Build
|
|
run: pnpm run -r build
|
|
- name: Build docs
|
|
run: |
|
|
pnpm run docs
|
|
touch docs/.nojekyll
|
|
echo "ref.mtcute.dev" > docs/CNAME
|
|
- name: Deploy
|
|
uses: JamesIves/github-pages-deploy-action@v4.4.1
|
|
with:
|
|
branch: gh-pages
|
|
single-commit: true
|
|
folder: docs
|