-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 977 Bytes
/
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
name: Deploy to Cloudflare Pages
run-name: Deploying to Cloudflare Pages
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
environment:
name: cloudflare-pages
url: ${{ steps.deploy.outputs.deployment-url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
cache: yarn
- name: Install dependencies
run: yarn workspaces focus @blending/docs
- name: Build
run: yarn workspace @blending/docs build
- name: Deploy
id: deploy
uses: cloudflare/wrangler-action@v3
with:
wranglerVersion: 3
accountId: 38794234ecc4906051a567a03b96d5bd
apiToken: ${{ secrets.CLOUDFLARE_TOKEN }}
packageManager: yarn
command: pages deploy apps/docs/dist --project-name=blending