mtcute/.forgejo/workflows/docs.yaml
alina sireneva dc08d93d2b
Some checks failed
Tests / e2e (push) Blocked by required conditions
Tests / e2e-deno (push) Blocked by required conditions
Tests / test-deno (push) Successful in 1m53s
Tests / test-bun (push) Successful in 2m1s
Tests / test-node (node22) (push) Successful in 2m8s
Tests / test-node (node20) (push) Successful in 2m10s
Tests / test-node (node18) (push) Successful in 2m16s
Tests / test-web (chromium) (push) Successful in 2m18s
Tests / test-web (firefox) (push) Successful in 2m31s
Tests / lint (push) Has been cancelled
Build and deploy typedoc / build (push) Has been cancelled
chore: moved docs inside the main repo
Co-authored-by: Kamilla 'ova <me@kamillaova.dev>
Co-authored-by: Alina Chebakova <chebakov05@gmail.com>
Co-authored-by: Kravets <57632712+kravetsone@users.noreply.github.com>
Co-authored-by: starkow <hello@starkow.dev>
Co-authored-by: sireneva <150665887+sireneva@users.noreply.github.com>
2025-01-17 08:44:07 +03:00

38 lines
1 KiB
YAML

name: Build and deploy docs
on:
push:
branches: [master]
paths:
- 'docs/**'
workflow_dispatch:
concurrency:
group: docs
cancel-in-progress: false
jobs:
build:
runs-on: node20
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- name: Install dependencies
run: pnpm install --frozen-lockfile
working-directory: docs
- name: Build with VitePress
working-directory: docs
run: |
pnpm run build
touch .vitepress/dist/.nojekyll
echo mtcute.dev > .vitepress/dist/CNAME
echo "ignore-workspace-root-check=true" >> .npmrc
- name: Deploy
# do not run on forks
if: github.repository == 'teidesu/mtcute'
uses: https://github.com/cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy docs/.vitepress/dist --project-name=mtcute-docs