-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 821 Bytes
/
docs.yml
File metadata and controls
34 lines (28 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Deploy Documentation
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy to Cloudflare Pages
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0 # Required for VitePress lastUpdated feature
- name: Setup mise
uses: jdx/mise-action@v3
- name: Install dependencies
run: pnpm install
- name: Build documentation
run: pnpm docs:build
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: wrangler pages deploy docs/.vitepress/dist --project-name tuist-fabrik