-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (51 loc) · 1.24 KB
/
dev-ci.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
name: dev-ci
on:
push:
paths-ignore:
- '**/*.md'
branches:
- dev
pull_request:
branches:
- dev
jobs:
dev-build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: install
run: pnpm install
- name: lint
run: pnpm run lint
- name: format
run: pnpm run format
# build两个版本
- name: build minify
run: pnpm run build:minify
- name: mkdir
run: mkdir output
- name: move and rename file
run: mv dist/bilibili-cleaner.user.js output/bilibili-cleaner.min.user.js
- name: build default
run: pnpm run build
- name: copy file
run: cp dist/bilibili-cleaner.user.js output/
- name: add doc
run: cp LICENSE README.md CHANGELOG.md output/
- name: list files
run: ls -lah output/
# 上传产物
- name: upload-artifact
uses: actions/upload-artifact@v4
with:
name: bilibili-cleaner
path: output/*