mtcute/.forgejo/workflows/docs.yaml
alina sireneva 05077aa640
Some checks failed
Build and deploy typedoc / build (push) Waiting to run
Build and deploy docs / build (push) Successful in 1m56s
Tests / test-deno (push) Successful in 1m56s
Tests / test-bun (push) Successful in 2m5s
Tests / test-node (node22) (push) Successful in 2m14s
Tests / test-node (node20) (push) Successful in 2m21s
Tests / test-node (node18) (push) Successful in 2m29s
Tests / test-web (chromium) (push) Successful in 2m21s
Tests / test-web (firefox) (push) Successful in 1m33s
Tests / lint (push) Failing after 7m0s
Tests / e2e (push) Has been skipped
Tests / e2e-deno (push) Has been skipped
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:50:23 +03:00

37 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