-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.01 KB
/
deploy-docs.yml
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
35
36
37
38
39
on:
push:
paths:
- "mono/docs/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
env:
TURBO_URL: ${{ secrets.TURBO_URL }}
TURBO_CODE: ${{ secrets.TURBO_CODE }}
defaults:
run:
working-directory: mono
permissions:
contents: read
deployments: write
name: Deploy
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
with:
version: 9.12.2
- name: install dependencies
run: pnpm install --frozen-lockfile
- name: build
run: cd docs/starlight && pnpm build:ci
- name: publish docs
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: gg-docs
directory: mono/docs/starlight/dist # e.g. 'dist'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}