You've already forked waveterm-docs
mirror of
https://github.com/wavetermdev/waveterm-docs.git
synced 2026-04-22 15:26:42 -07:00
92243c1f6e
* Fix flag in build-embedded workflow * use npm script
32 lines
793 B
YAML
32 lines
793 B
YAML
name: Build embedded docsite
|
|
|
|
env:
|
|
NODE_VERSION: 20
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build-embedded:
|
|
name: Build embedded site
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{env.NODE_VERSION}}
|
|
- name: Install yarn
|
|
run: |
|
|
corepack enable
|
|
yarn install
|
|
- name: Build embedded site
|
|
run: yarn build-embedded
|
|
- name: Upload embedded site artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: static-site
|
|
path: build
|