-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (38 loc) · 1.14 KB
/
【移动端】百度系优化.yaml
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
name: 【移动端】百度系优化
on:
push:
branches: ["master"]
paths:
- "packages/【移动端】百度系优化/**"
- ".github/workflows/【移动端】百度系优化.yaml"
- "!packages/【移动端】百度系优化/README.md"
- "!packages/【移动端】百度系优化/dist/*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: set git
run: |
git config --global core.symlinks false
- name: 校验
uses: actions/checkout@v4
- uses: volta-cli/action@v4
- name: 设置Node和pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: 构建
run: |
cd ./packages/【移动端】百度系优化
echo "当前目录:"$(pwd)
pnpm install
pnpm run build
- name: 上传附件
uses: actions/upload-artifact@main
with:
name: 【移动端】百度系优化
path: ./packages/【移动端】百度系优化/dist
- name: 下载附件
uses: actions/download-artifact@main
with:
name: 【移动端】百度系优化