-
-
Notifications
You must be signed in to change notification settings - Fork 626
36 lines (29 loc) · 986 Bytes
/
deploy-playground.yaml
File metadata and controls
36 lines (29 loc) · 986 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
35
36
name: Deploy Playground
on:
push:
branches: [main]
jobs:
deploy-playground:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Install pnpm
run: npm i -g --force corepack && corepack enable
- name: Set node version to 22
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: '22.x'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --no-frozen-lockfile && node scripts/bootstrap.mjs
- name: Build playground
run: pnpm build:play
- name: Deploy site
uses: JamesIves/github-pages-deploy-action@a1ea191d508feb8485aceba848389d49f80ca2dc # v4.4.3
with:
branch: gh-page
folder: packages/varlet-ui-playground/site
single-commit: true
clean: true
target-folder: playground