Skip to content

Commit 34e9f73

Browse files
authored
chore: add deploy workflows
1 parent 0b80e83 commit 34e9f73

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build and Deploy Element Plus
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Install pnpm
16+
run: corepack enable
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: '18'
22+
cache: 'pnpm'
23+
24+
- name: Install Dependencies
25+
run: pnpm install --no-frozen-lockfile
26+
- name: Build Vue Utils
27+
run: pnpm run build:vue-utils
28+
29+
- name: Build playground Site
30+
run: cd playground && pnpm run build
31+
32+
- name: Deploy to playgounr packages
33+
uses: JamesIves/github-pages-deploy-action@v4.4.1
34+
with:
35+
branch: docs
36+
folder: playground/dist
37+
token: ${{ secrets.GITHUB_TOKEN }}
38+
repository-name: cc-heart-dev/object-to-declare
39+
target-folder: /
40+
single-commit: true
41+
clean: true
42+

0 commit comments

Comments
 (0)