-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (39 loc) · 942 Bytes
/
build.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
name: build
run-name: ${{ github.actor }} 构建插件
on:
push:
branches:
- dev
tags:
- "*"
permissions:
contents: write
jobs:
build-chrome-extension:
runs-on: ubuntu-latest
steps:
- name: 读取仓库
uses: actions/checkout@v4
- name: 打包
run: |
npm install
npm run build-chrome
- name: 部署
uses: JamesIves/[email protected]
with:
branch: dist/chrome-${{ github.ref_name }}
folder: dist-chrome
build-firefox-extension:
runs-on: ubuntu-latest
steps:
- name: 读取仓库
uses: actions/checkout@v4
- name: 打包
run: |
npm install
npm run build-firefox
- name: 部署
uses: JamesIves/[email protected]
with:
branch: dist/firefox-${{ github.ref_name }}
folder: dist-firefox