-
Notifications
You must be signed in to change notification settings - Fork 373
58 lines (49 loc) · 1.5 KB
/
build-builder-website.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build Builder Website
on:
push:
branches: [main]
paths:
- 'packages/document/builder-doc/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-builder-website:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Pnpm
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Nx Cache
id: nx-cache
uses: actions/cache@v3
with:
path: .nx-cache
key: nx-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-
nx-
- name: Install Dependencies
run: pnpm install
- name: Build Website
run: pnpm --filter @modern-js/builder-doc run build:doc
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
repository-name: web-infra-dev/web-infra-dev.github.io
branch: main
folder: packages/document/builder-doc/doc_build
token: ${{ secrets.MODERN_DEPLOY_TOKEN }}
target-folder: modern-js/builder
git-config-name: gh-pages-bot
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
# enable single-commit to reduce the repo size
single-commit: true
clean: true