alina sireneva
7c24fc5714
Some checks failed
Tests / test-node (node22) (push) Successful in 1m37s
Tests / test-deno (push) Successful in 1m36s
Tests / test-node (node18) (push) Successful in 1m46s
Tests / test-bun (push) Successful in 1m43s
Tests / test-web (chromium) (push) Successful in 1m42s
Tests / test-node (node20) (push) Successful in 1m49s
Tests / test-web (firefox) (push) Successful in 1m8s
Tests / lint (push) Successful in 6m35s
Docs / build (push) Successful in 6m40s
Tests / e2e-deno (push) Successful in 52s
Tests / e2e (push) Failing after 57s
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: Docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches: [ master ]
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: pages
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: node22
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./.forgejo/actions/init
|
|
- name: Build docs
|
|
run: |
|
|
pnpm run docs
|
|
touch docs/.nojekyll
|
|
echo "ref.mtcute.dev" > docs/CNAME
|
|
echo "ignore-workspace-root-check=true" >> .npmrc
|
|
|
|
curl -O https://gist.githubusercontent.com/j0nl1/7f9b5210c9e6ecbabe322baa16dcb5db/raw/760de77327bf83671cfb6bd4e64181299ba26113/typedoc-fix-cf.mjs
|
|
node typedoc-fix-cf.mjs docs
|
|
- name: Deploy
|
|
# do not run on forks and releases
|
|
# if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.actor == 'desu-bot'
|
|
uses: https://github.com/cloudflare/wrangler-action@v3
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }}
|
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
command: pages deploy docs --project-name=mtcute-apiref
|